blender.git
5 years agoOpenSubdiv: Better approximation of vertex normals
Sergey Sharybin [Tue, 25 Aug 2015 10:40:50 +0000 (12:40 +0200)]
OpenSubdiv: Better approximation of vertex normals

Use vertex varying data which gives better approximation of normals.
Still not ideal but should be closer for higher poly meshes to correct
normal.

The only way to have proper smooth normals seems to be to implement
patch evaluation in tessellation shader, but that's a bit PITA with
current GLSL usage in our draw code.

5 years agoFix T45891: Crash generating previews
Campbell Barton [Tue, 25 Aug 2015 08:33:04 +0000 (18:33 +1000)]
Fix T45891: Crash generating previews

5 years agoFix T45729: Cycles Bake break when building a special mesh
Sergey Sharybin [Tue, 25 Aug 2015 08:29:40 +0000 (10:29 +0200)]
Fix T45729: Cycles Bake break when building a special mesh

The issue was caused by CD_SHAPEKEY_INDEX layer being added to edge data,
now we make sure all the layers are nicely re-allocated.

5 years agoQuiet warning with arg types
Campbell Barton [Tue, 25 Aug 2015 07:27:18 +0000 (17:27 +1000)]
Quiet warning with arg types

5 years agoFix T45814: Writing MP4, h.264 not supported
Campbell Barton [Mon, 24 Aug 2015 22:51:04 +0000 (08:51 +1000)]
Fix T45814: Writing MP4, h.264 not supported

5 years agoCleanup: style
Campbell Barton [Mon, 24 Aug 2015 22:50:53 +0000 (08:50 +1000)]
Cleanup: style

5 years agoFix for previous commit
Sergey Sharybin [Mon, 24 Aug 2015 21:11:11 +0000 (23:11 +0200)]
Fix for previous commit

uint is only used in Cycles, Blender is not really ready for this.

Pointed out by Thomas Szepe, thanks!

5 years agoBLI_fileops: Some fixes and cleanup.
Bastien Montagne [Mon, 24 Aug 2015 20:09:01 +0000 (22:09 +0200)]
BLI_fileops: Some fixes and cleanup.

* Fix BLI_file_touch, used to add one dummy byte ((unsigned char)EOF) to empty files!
* Get rid of static global temp string in WIN32 area (very bad, and useless!).
* Get rid of paranoid NULL checks in WIN32's BLI_gzopen().
* Add non-relative filename asserts to WIN32 file operations too.
* ifdef-out BLI_move and BLI_create_symlink, unused (and the later is not even implemented for windows).

Partly based on patch and points raised by Jason Wilkins (jwilkins) in T32870, thanks!

5 years agoFix T45833: Light group instances are not rendered in the 3D viewport
Sergey Sharybin [Mon, 24 Aug 2015 20:02:41 +0000 (22:02 +0200)]
Fix T45833: Light group instances are not rendered in the 3D viewport

The issue was introduced in c9ac51e by trying to use original's objects layers
for light visibility check instead of using duplicator's layers.

5 years agoFix T45778: Objects scaled to 0 cause black artifacts with Static BVH
Sergey Sharybin [Mon, 24 Aug 2015 19:21:30 +0000 (21:21 +0200)]
Fix T45778: Objects scaled to 0 cause black artifacts with Static BVH

The issue was caused by some numeric instability in triangle intersection which
was visible on avx2 CPUs and GPUs (at least sm_20 here) but maybe some others
too.

Committing rather a workaround for now to be safe for the release, still need
some investigation.

From tests with grass field from Gooseberry project didn't see measurable
slowdown.

5 years agoFix T45737: Vertex colors show washed-out
Campbell Barton [Mon, 24 Aug 2015 15:02:28 +0000 (01:02 +1000)]
Fix T45737: Vertex colors show washed-out

Blender-Internal and GLSL-nodes missed converting sRGB to linear color.

5 years agoFix DM_get_loop_array, was checking edge-data
Campbell Barton [Mon, 24 Aug 2015 14:43:13 +0000 (00:43 +1000)]
Fix DM_get_loop_array, was checking edge-data

Fixes T45728

5 years agoFix T45084 correcting bending_damping for cloth stiffness, by Martin Norris.
Lukas Tönne [Mon, 24 Aug 2015 12:09:01 +0000 (14:09 +0200)]
Fix T45084 correcting bending_damping for cloth stiffness, by Martin Norris.

5 years agoFix T45823: PSD files save as JPG without warning
Campbell Barton [Mon, 24 Aug 2015 11:31:41 +0000 (21:31 +1000)]
Fix T45823: PSD files save as JPG without warning

Don't allow image save (which overwrites without asking),
unless the input format can be written to.

5 years agoFix T45885: Cycles coordinate extension modes not working as expected
Sergey Sharybin [Mon, 24 Aug 2015 08:37:59 +0000 (10:37 +0200)]
Fix T45885: Cycles coordinate extension modes not working as expected
Fix T45769: Image Texture Node clipping bug

Simple mistakes in the normalized/pixel-space coordinates handling.

Render tests for this feature are coming.

5 years agoFix some issues from lates coverity scan.
Bastien Montagne [Mon, 24 Aug 2015 07:59:04 +0000 (09:59 +0200)]
Fix some issues from lates coverity scan.

Unlikely, but still valid.

5 years agoTests: Ignore preview render script in module loading tests
Sergey Sharybin [Sun, 23 Aug 2015 16:55:40 +0000 (18:55 +0200)]
Tests: Ignore preview render script in module loading tests

5 years agoCycles: Use better policy for primitive array resize for spatial split
Sergey Sharybin [Sun, 23 Aug 2015 13:57:41 +0000 (15:57 +0200)]
Cycles: Use better policy for primitive array resize for spatial split

Gives around 50% of spatial split BVH build speedup with grass field from
cassette player shot from Gooseberry.

5 years agoCycles: Implement reseve() for aligned array class
Sergey Sharybin [Sun, 23 Aug 2015 13:50:31 +0000 (15:50 +0200)]
Cycles: Implement reseve() for aligned array class

The title says it all actually, just support reserving memory in the array class.

5 years agoCycles: Speedup of Spatial BVH split code
Sergey Sharybin [Sun, 23 Aug 2015 13:03:00 +0000 (15:03 +0200)]
Cycles: Speedup of Spatial BVH split code

Avoid memmove() happening on every insert of duplicated node to the references
list. Temporary pre-allocated vector is used for new references which is then
being inserted into actual array in one go later.

Gives around 4x speedup building spatially split BVH for the grass field in the
cassette player shot from Gooseberry.

5 years agoCycles: Implementation of object reference nodes spatial split
Sergey Sharybin [Sat, 22 Aug 2015 19:19:00 +0000 (21:19 +0200)]
Cycles: Implementation of object reference nodes spatial split

This commit implements object reference node spatial split making it possible
to use spatial split for top-level BVH.

The code is not in use yet because enabling spatial split on top level BVH is
not coming for free and it needs to be investigated if it's worth in terms of
improved render times.

5 years agoCycles: Make primitive split code easier for re-use by reference splitting function
Sergey Sharybin [Fri, 21 Aug 2015 17:40:14 +0000 (19:40 +0200)]
Cycles: Make primitive split code easier for re-use by reference splitting function

5 years agoCycles: Move primitive splitting into own functions
Sergey Sharybin [Fri, 21 Aug 2015 15:49:41 +0000 (17:49 +0200)]
Cycles: Move primitive splitting into own functions

This way it's easy to add more reference types allowed for splitting to the
BVH reference split function without making this function too much big. This
way it's possible to experiment with such features as splitting object instance
references.

So far should not be any functional changes.

5 years agoCycles: BVH statistics print was missing for spatially split BVH tree
Sergey Sharybin [Fri, 21 Aug 2015 01:42:25 +0000 (03:42 +0200)]
Cycles: BVH statistics print was missing for spatially split BVH tree

5 years agoFix editmesh GLSL tangent drawing
Campbell Barton [Mon, 24 Aug 2015 05:14:34 +0000 (15:14 +1000)]
Fix editmesh GLSL tangent drawing

The generic tangent calculation relied on CDDM arrays which aren't available in edit-mode.

Add a tangent calculation callback, which has its own implementation for editmesh data.

5 years agoFix T45884: Crash copying keyframes
Campbell Barton [Sun, 23 Aug 2015 23:23:24 +0000 (09:23 +1000)]
Fix T45884: Crash copying keyframes

BLI_str_quoted_substrN could crash if the prefix wasn't found

5 years agomathutils.BVHTree: support overlap self-intersect
Campbell Barton [Sun, 23 Aug 2015 22:13:58 +0000 (08:13 +1000)]
mathutils.BVHTree: support overlap self-intersect

Use same logic as BKE_bmbvh_overlap

5 years agoBVHTree.FromBMesh() missed epsilon arg
Campbell Barton [Sun, 23 Aug 2015 22:12:59 +0000 (08:12 +1000)]
BVHTree.FromBMesh() missed epsilon arg

5 years agoFix T45882: Sudden shutdown if the filebrowser is part of the area layout.
Bastien Montagne [Sun, 23 Aug 2015 18:27:59 +0000 (20:27 +0200)]
Fix T45882: Sudden shutdown if the filebrowser is part of the area layout.

There is no guarantee in sfile's listener that FileList has already been created...

5 years agoFix T45860, missing extension in GLSL after recent own fix.
Antony Riakiotakis [Sun, 23 Aug 2015 15:20:08 +0000 (18:20 +0300)]
Fix T45860, missing extension in GLSL after recent own fix.

5 years agoBGE: Fix T42679: Python physics environment not setted for python control script.
Porteries Tristan [Sun, 23 Aug 2015 12:30:44 +0000 (14:30 +0200)]
BGE: Fix T42679: Python physics environment not setted for python control script.

5 years agoCleanup: spelling/style
Campbell Barton [Sun, 23 Aug 2015 11:12:48 +0000 (21:12 +1000)]
Cleanup: spelling/style

5 years agoThis commit makes it possible to select the sort mode whenever we invoke an operator.
Thomas Beck [Sun, 23 Aug 2015 10:40:21 +0000 (12:40 +0200)]
This commit makes it possible to select the sort mode whenever we invoke an operator.

It's needed especially for the menu entry "recover auto save" where you'd like to have the files sorted by date most of the time but it could be useful in other places too.
There should be no functional change in other areas, I just added the missing parameter (FILE_SORT_ALPHA).

Was a request from @sebastian_k at #BCon13, so at least one guy needs it ;)

Reviewers: mont29

Reviewed By: mont29

Subscribers: sebastian_k

Differential Revision: https://developer.blender.org/D1476

5 years agoFix T45633 - Animated modifiers don't update in new depsgraph
Joshua Leung [Sun, 23 Aug 2015 10:12:25 +0000 (22:12 +1200)]
Fix T45633 - Animated modifiers don't update in new depsgraph

* Resolved some todo's where FModifier paths were getting identified using the
  wrong pattern.
* Added the missing animation -> modifier link. The "hacky" part here is just
  to do with how we check if that link is needed; the link though should exist
  in the graph.

5 years agoMath Lib: Use same logic for 2d/3d functions
Campbell Barton [Sun, 23 Aug 2015 09:10:37 +0000 (19:10 +1000)]
Math Lib: Use same logic for 2d/3d functions

dist_squared_to_line_v2, dist_to_line_v2

5 years agoMath Lib: minor optimization interp_weights_poly
Campbell Barton [Sun, 23 Aug 2015 07:07:35 +0000 (17:07 +1000)]
Math Lib: minor optimization interp_weights_poly

5 years agoCleanup: spelling
Campbell Barton [Sat, 22 Aug 2015 11:17:32 +0000 (21:17 +1000)]
Cleanup: spelling

5 years agoUse epsilon for line-intersect collinear test
Campbell Barton [Sat, 22 Aug 2015 11:03:12 +0000 (21:03 +1000)]
Use epsilon for line-intersect collinear test

Also remove 2x vector normalize since other parts of the code already check this.

Fixes T45849

5 years agoFileBrowser: Tweak display of size/time of entries.
Bastien Montagne [Sat, 22 Aug 2015 09:02:12 +0000 (11:02 +0200)]
FileBrowser: Tweak display of size/time of entries.

We have no size for blenlib entries, nor do we have time for those and 'parent' entry.

Thanks to Sergey for notifying this on IRC.

5 years agooutliner: tweak GPLayer color button overlap
Campbell Barton [Sat, 22 Aug 2015 06:48:41 +0000 (16:48 +1000)]
outliner: tweak GPLayer color button overlap

5 years agoFix outliner grease pencil color button
Campbell Barton [Sat, 22 Aug 2015 06:37:35 +0000 (16:37 +1000)]
Fix outliner grease pencil color button

5 years agoFix T45689: Pose Libraries cannot be used when using lib-linked actions as poselibs
Joshua Leung [Sat, 22 Aug 2015 06:16:55 +0000 (18:16 +1200)]
Fix T45689: Pose Libraries cannot be used when using lib-linked actions as poselibs

This commit makes some tweaks that make it at least possible to use lib-linked
actions as Pose Libraries. Specifically:
* The apply poses button is no longer greyed out

* It is possible to select different poses from the list of poses

* All pose library operators which edit the poses stored in the poselib
  now have improved poll callbacks which perform extra checks for lib-linked
  actions (which cannot be edited, as all those changes will be lost)

Caveats:
* Due to the way the UI list template works, it doesn't seem to be possible to
  make it not grey out the items in the list. (While the double-click to rename
  thing shouldn't be allowed, items should at least look like they can be clicked on)

* The difference between clickable vs not-clickable isn't too great, making it hard
  to tell that that while the Add/Remove/Sanitise toggles are not usable,
  the Apply Poses is actually functional. But, this is a more of a  UI-toolbox
  level issue

5 years agoTypo fix
Joshua Leung [Fri, 21 Aug 2015 15:30:09 +0000 (03:30 +1200)]
Typo fix

5 years agoBGE: Fix constraint free crash in RemoveConstraint.
Porteries Tristan [Fri, 21 Aug 2015 20:17:35 +0000 (22:17 +0200)]
BGE: Fix constraint free crash in RemoveConstraint.

Fix silly error getRigidBodyA() instead of getRigidBodyB()

5 years agoFix T45658: linked library object loses particle settings.
Bastien Montagne [Fri, 21 Aug 2015 16:27:14 +0000 (18:27 +0200)]
Fix T45658: linked library object loses particle settings.

Simply make ParticleSettings datablock linkable, see absolutely no reason why those
were the only 'real data' ID type not linkable so far...

5 years agoAnim Editors: All keyframe selection operators now perform undo pushes
Joshua Leung [Fri, 21 Aug 2015 14:47:32 +0000 (02:47 +1200)]
Anim Editors: All keyframe selection operators now perform undo pushes

This brings them into line with other editing tools (e.g. object/mesh selection),
and should help fix bugs like T45374 and T45846

5 years agoFix T45864: Wrong NLA Control Curves keyed when using the Graph Editor sliders
Joshua Leung [Fri, 21 Aug 2015 14:33:31 +0000 (02:33 +1200)]
Fix T45864: Wrong NLA Control Curves keyed when using the Graph Editor sliders

This commit simplifies the logic for finding the control curves for NLA strips,
thus eliminating a whole bunch of weird errors that were happening here. It should
also fix a number of other related issues here.

5 years agoFix T45865: Auto Blend is not recalculated when adjusting start/end/scale etc. of...
Bastien Montagne [Fri, 21 Aug 2015 14:18:20 +0000 (16:18 +0200)]
Fix T45865: Auto Blend is not recalculated when adjusting start/end/scale etc. of strip through RNA.

5 years agoBVH-raycast: Use watertight intersections
Campbell Barton [Fri, 21 Aug 2015 07:46:23 +0000 (17:46 +1000)]
BVH-raycast: Use watertight intersections

By default watertight intersections are used,
For callbacks where its not needed,
BLI_bvhtree_ray_cast_ex can be called without the BVH_RAYCAST_WATERTIGHT flag.

Fixes T45286

5 years agoMath Lib: watertight intersection function
Campbell Barton [Fri, 21 Aug 2015 07:45:04 +0000 (17:45 +1000)]
Math Lib: watertight intersection function

From Cycles with some very minor differences.

5 years agoMath Lib: Add float/int conversion functions
Campbell Barton [Fri, 21 Aug 2015 07:42:40 +0000 (17:42 +1000)]
Math Lib: Add float/int conversion functions

5 years agoBVH-raycast: ensure input direction is unit-length
Campbell Barton [Fri, 21 Aug 2015 07:05:48 +0000 (17:05 +1000)]
BVH-raycast: ensure input direction is unit-length

This was already the case for most users of ray-cast.
Doing this avoids 2x normalize calls per ray-cast in many places.

5 years agoFix uninitialized var use
Campbell Barton [Fri, 21 Aug 2015 04:46:30 +0000 (14:46 +1000)]
Fix uninitialized var use

5 years agoDocs: correct some comments
Campbell Barton [Thu, 20 Aug 2015 23:07:52 +0000 (09:07 +1000)]
Docs: correct some comments

5 years agoFix ATI part of T45708, crash when enabling opensubdiv.
Antony Riakiotakis [Thu, 20 Aug 2015 13:23:33 +0000 (16:23 +0300)]
Fix ATI part of T45708, crash when enabling opensubdiv.

In fact exit was getting called because we
had an error in shader compilation:

Uniform buffer objects are in fact required.

Since it looks like original intent was to
write the shader against older GLSL version,
I will be adding an extension here instead
of a version.

Thanks to Anshu Arya for letting me borrow his machine through
VPN to do the debugging :)

5 years agoFix T45491 not all GPUs support those extensions, use check for
Antony Riakiotakis [Thu, 20 Aug 2015 13:05:24 +0000 (16:05 +0300)]
Fix T45491 not all GPUs support those extensions, use check for
opensubdiv to enable.

5 years agoMinor cleanup (BLI_cleanup_dir already adds trailing slash, and correct a false-posit...
Bastien Montagne [Thu, 20 Aug 2015 10:44:03 +0000 (12:44 +0200)]
Minor cleanup (BLI_cleanup_dir already adds trailing slash, and correct a false-positive assert).

5 years agoBGE: Fix T44557 GameLogic module memory leak.
Porteries Tristan [Thu, 20 Aug 2015 09:53:09 +0000 (11:53 +0200)]
BGE: Fix T44557 GameLogic module memory leak.

This reverts commit 7a28ca4398465be1d6d57079e4b27c3a03418745.

5 years agoFix T43654: Radial distance for force fields was computed using the `vec_to_point`
Lukas Tönne [Thu, 20 Aug 2015 09:57:03 +0000 (11:57 +0200)]
Fix T43654: Radial distance for force fields was computed using the `vec_to_point`
vector, which already has the radial component removed.

5 years agoResolve MSVC/OpenMP compat issue
Campbell Barton [Thu, 20 Aug 2015 09:22:09 +0000 (19:22 +1000)]
Resolve MSVC/OpenMP compat issue

5 years agoUse BVH-overlap for mesh self-intersection display
Campbell Barton [Thu, 20 Aug 2015 09:09:20 +0000 (19:09 +1000)]
Use BVH-overlap for mesh self-intersection display

Add BKE_bmbvh_overlap, remove BKE_bmbvh_find_face_segment

5 years agoHopefully fix mingw building after filebrowser rewrite.
Bastien Montagne [Thu, 20 Aug 2015 08:15:08 +0000 (10:15 +0200)]
Hopefully fix mingw building after filebrowser rewrite.

The mystery here is, how MSVC could not break on such error? :(

5 years agoBVH-overlap: add callback to BLI_bvhtree_overlap
Campbell Barton [Thu, 20 Aug 2015 07:32:25 +0000 (17:32 +1000)]
BVH-overlap: add callback to BLI_bvhtree_overlap

The callback checks if 2 nodes intersect (not just their AABB).

Advantages:
- theres no need to allocate overlaps which are later ignored.
- expensive intersection tests will run multi-threaded.

Currently only used for Python API.

5 years agoFix T45514 crash entering texpaint mode.
Antony Riakiotakis [Thu, 20 Aug 2015 07:35:14 +0000 (10:35 +0300)]
Fix T45514 crash entering texpaint mode.

In the file of the report, stencil and clone indices
have fallen out of synch with the uv/mtexpoly layers.

Looks like the file has a long history, coming from 2.49
even. Unfortunately reporter cannot recall exact steps
to reproduce, so "fix" is to patch mesh.validate to
fix those indices.

5 years agoBVH-overlap: use stack for overlap data array
Campbell Barton [Thu, 20 Aug 2015 05:56:33 +0000 (15:56 +1000)]
BVH-overlap: use stack for overlap data array

This is known to be <32, so no need to malloc every item.

5 years agoAvoid redundant normal calculation in heat-weight
Campbell Barton [Thu, 20 Aug 2015 05:09:25 +0000 (15:09 +1000)]
Avoid redundant normal calculation in heat-weight

5 years agoCleanup: de-duplicate ray-cast initialization
Campbell Barton [Thu, 20 Aug 2015 03:25:21 +0000 (13:25 +1000)]
Cleanup: de-duplicate ray-cast initialization

5 years agoCleanup: comment out isect_ray_tri_threshold_v3
Campbell Barton [Thu, 20 Aug 2015 02:36:21 +0000 (12:36 +1000)]
Cleanup: comment out isect_ray_tri_threshold_v3

Also define epsilon var for ray-cast functions.

5 years agoTransform: Use BVH for volume-snap (optimization)
Campbell Barton [Thu, 20 Aug 2015 02:14:02 +0000 (12:14 +1000)]
Transform: Use BVH for volume-snap (optimization)

Was performing ray-tri intersection checks on all faces.

Note, this isn't using isect_ray_tri_threshold_v3
which was used to prevent ray-casts slipping through between faces.

Instead we'll move to using watertight intersections by default.

5 years agoCleanup: remove unused BVH_ONQUAD flag
Campbell Barton [Thu, 20 Aug 2015 01:03:34 +0000 (11:03 +1000)]
Cleanup: remove unused BVH_ONQUAD flag

5 years agoFix drawing subsurf & auto-smooth
Campbell Barton [Wed, 19 Aug 2015 23:20:41 +0000 (09:20 +1000)]
Fix drawing subsurf & auto-smooth

Error caused by recent MFace removal from subsurf.

5 years agoCleanup: unused vars
Campbell Barton [Wed, 19 Aug 2015 23:19:50 +0000 (09:19 +1000)]
Cleanup: unused vars

5 years agoCleanup: whitespace
Campbell Barton [Wed, 19 Aug 2015 22:51:35 +0000 (08:51 +1000)]
Cleanup: whitespace

5 years agoFileBrowser: Fix some minor issue with fileentries creation.
Bastien Montagne [Wed, 19 Aug 2015 22:48:59 +0000 (00:48 +0200)]
FileBrowser: Fix some minor issue with fileentries creation.

An entry could already exist in misc cache, when creating it for block cache, leading to double-creation.
Issue was not that serious (no memleak or so), but nasty still. Thanks to Severin for notifying the assert.

5 years agoFix 32bit builds... :/
Bastien Montagne [Wed, 19 Aug 2015 21:54:49 +0000 (23:54 +0200)]
Fix 32bit builds... :/

5 years agoFinal 'FileBrowser First Stage' merge.
Bastien Montagne [Wed, 19 Aug 2015 20:41:39 +0000 (22:41 +0200)]
Final 'FileBrowser First Stage' merge.

It basically rewrites most of filelist.c, with some more limited changes in other areas of filebrowser.

From user perspective, it:
* Removes some info in 'long' drawing mode (owner, permissions) - OS-specific data that do not really matter in Blender!
* Makes short/long display 'fixed' size (among four choices, like thumbnails mode).
* Allows to list several layers of dirtree at once, in a flat way (inside .blend files and/or real directories).
* Consequently, adds datablocks types filtering.
* Uses way less RAM when listing big directories, especially in thumbnail mode (we are talking of several hundred of MiB spared).
* Generates thumbnails way faster.

From code perspective, it:
* Is ready for asset engine needs (on data structure level in filebrowser's listing).
* Simplifies and makes 'generic' file listing much lighter.
* Separates file listing in three different aspects:
** 'generic' filelisting (in BLI), which becomes a shallow wrapper around stat struct.
** 'filebrowser drawing' filelisting, which only contains current visible subset of the whole list (sliding window), with extra drawing data (strings for size, date/time, preview, etc.).
** 'asset-ready' filelisting, which is used for operations common to 'basic' filehandling and future asset-related one.
* Uses uuid's to handle file selection/state in the browser, instead of using flags in filelisting items.
* Uses much lighter BLI_task handling for previews, instead of heavy 'job' system (using the new 'notifier' timer to handle UI refresh, in similar way to jobs).
* Moves .blend datablocks preview handling to IMB_thumbnail (necessary to avoid storing all datablock previews at once, and gives better consistency and performances too).

Revision: https://developer.blender.org/D1316

Thanks to Campbell & Sergey for the reviews. :)

5 years agoFix T45847: Pie looses focus when mouse cursor passes through a pie button
Julian Eisel [Wed, 19 Aug 2015 18:53:16 +0000 (20:53 +0200)]
Fix T45847: Pie looses focus when mouse cursor passes through a pie button

5 years agoMore BLT/Windows fixes... :/
Bastien Montagne [Wed, 19 Aug 2015 09:01:52 +0000 (11:01 +0200)]
More BLT/Windows fixes... :/

5 years agoHopefully fix broken windows after recent i18n split.
Bastien Montagne [Wed, 19 Aug 2015 08:09:08 +0000 (10:09 +0200)]
Hopefully fix broken windows after recent i18n split.

We need to include BLI_utildefines.h when using __func__...

5 years agoFix for accessing looptri's from subsurf
Campbell Barton [Wed, 19 Aug 2015 07:24:08 +0000 (17:24 +1000)]
Fix for accessing looptri's from subsurf

Use poly count since tessfaces may be zero

5 years agoMulti-View: fix Multi-View camera suffix test
Dalai Felinto [Wed, 19 Aug 2015 06:37:58 +0000 (03:37 -0300)]
Multi-View: fix Multi-View camera suffix test

If we had ambiguity in the SceneRenderView > Suffix matching test, the
first match would be used. And this would happen everytime a
SceneRenderView had an empty camera suffix.

We now take the longest matching suffix instead.

5 years agoFix T45706: Axis aligned tri-tri intersection
Campbell Barton [Wed, 19 Aug 2015 02:18:58 +0000 (12:18 +1000)]
Fix T45706: Axis aligned tri-tri intersection

5 years agoCleanup: style + doxy
Campbell Barton [Tue, 18 Aug 2015 22:45:35 +0000 (08:45 +1000)]
Cleanup: style + doxy

5 years agoFix error in recent library API updates
Campbell Barton [Tue, 18 Aug 2015 22:48:38 +0000 (08:48 +1000)]
Fix error in recent library API updates

5 years agoIncrease Smooth_View limit to 10.000
Thomas Beck [Tue, 18 Aug 2015 18:41:21 +0000 (20:41 +0200)]
Increase Smooth_View limit to 10.000

Request from @zuggamasta: For turntable like view rotations a very slow and smooth turn is needed. This is now possible with the new limit.

5 years agoIMB_thumb: Allow blen-handling func to also load datablock previews from .blend file.
Bastien Montagne [Tue, 18 Aug 2015 12:32:13 +0000 (14:32 +0200)]
IMB_thumb: Allow blen-handling func to also load datablock previews from .blend file.

Notes:
* Not yet used, this is the last piece of 'side changes' before the big filebrowser commit.
* We can probably be more effective here (like e.g. reading and storing all previews for a given
  group in thumbnails cache at once, instead of re-opening and parsing the whole file each time),
  but will do this later.

5 years agoReplace 'BLO_is_a_library' by 'BLO_library_path_explode'.
Bastien Montagne [Tue, 18 Aug 2015 11:18:50 +0000 (13:18 +0200)]
Replace 'BLO_is_a_library' by 'BLO_library_path_explode'.

This new func will be fully used by upcomming code (it mostly adds
the extraction of library item name as well as library file and ID group).

5 years agoIMB_thumb: add thread locking API.
Bastien Montagne [Tue, 18 Aug 2015 10:35:43 +0000 (12:35 +0200)]
IMB_thumb: add thread locking API.

General idea is that, if several threads are handling thumbnails at the same time,
they can end working on the same file at some point, which will generate conflict.

To avoid this, threads can now lock a given filepath.

Note that locking data is allocated on a ref-count basis, to avoid keeping the GSet
in memory when not needed. Also, we are using global LOCK_IMAGE mutex for now.

Needed for upcomming filebrowser rework.

5 years agoBGE: Fix mesh not registered in scene libload.
Porteries Tristan [Tue, 18 Aug 2015 10:24:38 +0000 (12:24 +0200)]
BGE: Fix mesh not registered in scene libload.

5 years agoFix T45824: Pie's no longer show enum icons
Campbell Barton [Tue, 18 Aug 2015 09:18:16 +0000 (19:18 +1000)]
Fix T45824: Pie's no longer show enum icons

5 years agoUI: avoid property lookup w/ expanded enums
Campbell Barton [Tue, 18 Aug 2015 09:04:06 +0000 (19:04 +1000)]
UI: avoid property lookup w/ expanded enums

5 years agosystem-info.txt was quoting ffmpeg lib names
Campbell Barton [Tue, 18 Aug 2015 06:09:51 +0000 (16:09 +1000)]
system-info.txt was quoting ffmpeg lib names

5 years agoUI: avoid subtracting shadow from winrct
Campbell Barton [Tue, 18 Aug 2015 04:16:58 +0000 (14:16 +1000)]
UI: avoid subtracting shadow from winrct

For popup interactions we need to know if events are in the region or not,
however subtracting the shadow isn't so reliable, since its not always added to all sides of a popup.

Instead, get the winrct value from a popup using the block rect, otherwise the winrct as-is.

5 years agoReadfile: more efficient OldNewMap lookups
Campbell Barton [Tue, 18 Aug 2015 01:22:07 +0000 (11:22 +1000)]
Readfile: more efficient OldNewMap lookups

Even when lasthit can't be used to find the next address,
use it as a starting point for the full array search.
Gives approx 1/3 less array searching in own tests.

5 years agoDocs: function comments
Campbell Barton [Mon, 17 Aug 2015 21:10:01 +0000 (07:10 +1000)]
Docs: function comments

5 years agoRefactor translation code out of blenfont
Campbell Barton [Sun, 16 Aug 2015 07:32:01 +0000 (17:32 +1000)]
Refactor translation code out of blenfont

- Add blentranslation `BLT_*` module.
- moved & split `BLF_translation.h` into (`BLT_translation.h`, `BLT_lang.h`).
- moved `BLF_*_unifont` functions from `blf_translation.c` to new source file `blf_font_i18n.c`.

5 years agoLattice min_max: add a version of the func using lattice's final DispList,
Philipp Oeser [Mon, 17 Aug 2015 14:59:32 +0000 (16:59 +0200)]
Lattice min_max: add a version of the func using lattice's final DispList,
and use it for bbox computing.

Revision: https://developer.blender.org/D1462

5 years agoBGE: Fix T45817 Convert curve object in group instance.
Porteries Tristan [Mon, 17 Aug 2015 14:51:35 +0000 (16:51 +0200)]
BGE: Fix T45817 Convert curve object in group instance.

Now group instance conversion allow unconverted object like curve, meta ball ect…

5 years agoSubsurf: don't reserve MFace by default
Campbell Barton [Mon, 17 Aug 2015 07:24:34 +0000 (17:24 +1000)]
Subsurf: don't reserve MFace by default

Instead, the cache can be calculated only when its needed (fixes T45787).

5 years agoFix for Ghost/OSX w/ core profile
Campbell Barton [Mon, 17 Aug 2015 06:17:22 +0000 (16:17 +1000)]
Fix for Ghost/OSX w/ core profile