Aaron Carlisle
3aeabe3afa
Merge branch 'master' into blender2.8
2017-07-21 18:28:32 -04:00
mano-wii
a27b6ae4a9
Transform: remove unused argument
2017-07-21 18:04:05 -03:00
mano-wii
64fd45b1df
Merge branch 'master' into blender2.8
...
# Conflicts:
# source/blender/editors/transform/transform_snap_object.c
2017-07-21 14:20:24 -03:00
mano-wii
34f0250f32
Another solution to bug T38358 and related
...
Moving the ray_start_local to the new position does not lose as much precision as moving the ray_org_local to the corresponding position.
The problem of inaccuracy is within the functions: `bvhtree_ray_cast_data_precalc` and` fast_ray_nearest_hit`. And not directly in the values of the rays.
2017-07-21 14:02:16 -03:00
Campbell Barton
122706db9c
Fix manipulator handles getting added each refresh
...
The same manipulator map handler would accumulate,
slowing down interactions.
2017-07-22 01:57:23 +10:00
Sergey Sharybin
ac0da72a60
Fix compilation error with Collada enabled
2017-07-21 17:44:11 +02:00
Sergey Sharybin
911f239d09
Merge branch 'master' into blender2.8
2017-07-21 16:08:31 +02:00
Sergey Sharybin
11204fce4e
Fix strict compiler warning in BGE when linking directly to SDL
2017-07-21 16:07:59 +02:00
Sergey Sharybin
5605c26fcd
Fix function declaration of some modifiers
...
Those functions did not use evaluation context.
Also fixed lots of unused variables warnings caused by commented out code which
needs to be ported away from DerivedMesh and to evaluation context.
2017-07-21 15:54:42 +02:00
Sergey Sharybin
cd301bf654
Depsgraph: Cleanup, remove unused function argument
2017-07-21 15:37:51 +02:00
Sergey Sharybin
9c2f55baa1
Fix compilation error with smoke and rigid body disabled
2017-07-21 15:36:59 +02:00
Luca Rood
1c4c288727
Pass EvaluationContext argument everywhere
...
Note that some little parts of code have been dissabled because eval_ctx
was not available there. This should be resolved once DerivedMesh is
replaced.
2017-07-21 14:47:26 +02:00
Sergey Sharybin
9edb7e49d7
Depsgraph: Fix missing material update when changing links in node tree
2017-07-21 14:20:30 +02:00
Sergey Sharybin
4e28d88ece
Fix T51724: Blender 2.80 EEVEE, Cycles, Clay Black Wall Graphical Glitch
2017-07-21 12:08:25 +02:00
Sergey Sharybin
9fbef5d5d5
Merge branch 'master' into blender2.8
2017-07-21 11:18:02 +02:00
Sergey Sharybin
4d67034076
Fix T52134: New depsgraph crashes when evaluating several psys on from object
2017-07-21 11:12:34 +02:00
Sergey Sharybin
2200e5a280
Fix strict compiler error after recent UI changes
2017-07-21 10:52:36 +02:00
Bastien Montagne
8b17ec0c00
Fix T52136: Blender segfault (stack overflow most certainly) when converting to mesh.
...
Stupid mistake in own recent refactor.
2017-07-21 10:24:20 +02:00
Bastien Montagne
dc6fcb8ecf
UI/floats: Reduce our UI_PRECISION_FLOAT_MAX by one to avoid most rounding issues.
...
The way we use it, UI_PRECISION_FLOAT_MAX is actually + 1 to get total
number of digits, and float only has 7 meaningful digits, so that define
shall be at 6.
2017-07-21 10:12:35 +02:00
Campbell Barton
c425653f16
Set face-map to active when selecting
...
It was annoying have to use select operator to know which facemap
applies to the active face. This behavior follows materials.
2017-07-21 15:50:58 +10:00
Brecht Van Lommel
db8bc1d982
Fix a few harmless maybe uninitialized warnings with GCC 5.4.
...
GCC seems to detect uninitialized into function calls now, but then isn't
always smart enough to see that it is actually initialized. Disabling this
warning entirely seems a bit too much, so initialize a bit more now.
2017-07-21 00:54:58 +02:00
Brecht Van Lommel
0d4fd7528f
Fix T46560: 2D paint smear and soften brushes not working with alpha.
...
Interpolate rather than do alpha over mix, matching projection paint.
2017-07-21 00:47:43 +02:00
Sergey Sharybin
3ededb19d8
Depsgraph: Fix crash when updating materials with copy on write enabled
...
The code was freeing GPU materials from non-main thread.
2017-07-20 17:48:36 +02:00
Sergey Sharybin
dfcb568c16
Fix T51925: Eevee: Animated Eevee values slowdown
...
Move material update from RNA callback to dependency graph.
2017-07-20 17:48:36 +02:00
Campbell Barton
177a8f6dab
Manipulator: add access to manipulator's group
2017-07-21 00:51:03 +10:00
Campbell Barton
6b0d4302be
PyAPI: use instancing when supported
...
This means when a new data-type is returned it will use the same
instance as the previously created one (if it exists).
2017-07-21 00:50:18 +10:00
Sergey Sharybin
57ee488404
Partially revert previous commit, some unwanted changes sneaked in
2017-07-20 16:15:13 +02:00
Sergey Sharybin
21f27692da
Depsgraph: Use explicit material update operation code
...
Avoids string comparison on key matching.
2017-07-20 16:03:04 +02:00
Sergey Sharybin
83b0bf9166
Depsgraph: Solve TODO about more granular particle settings update tagging
2017-07-20 15:38:48 +02:00
Sergey Sharybin
905366ca7e
Fix/workaround T52127: Combed hair from 2.78 not showing when appending
...
Quick solution to prevent particle components from being tagged for complete
re-evaluaiton.
2017-07-20 15:16:57 +02:00
Sergey Sharybin
84a87bf45a
Depsgraph: Fix crashes when OCIO configuration is missing
...
We were creating copy on write version of scene prior to validating color management
settings for the original scene.
2017-07-20 15:00:09 +02:00
Sergey Sharybin
b7d0cfaa60
Depsgraph: Fix missing UV layers with copy on write enabled
2017-07-20 14:29:13 +02:00
Sergey Sharybin
00ddbd5848
Depsgraph: Fix crash with copy on write when scene has legacy bases
...
The remapping code was creating plkaceholders for objects coming from legacy
bases, but since those objects were never created by dependency graph (since
they are supposed to be ignored) the copy on write relations creation was
confused.
Now we do some special trickery to clear legacy bases on copy on write.
2017-07-20 13:27:34 +02:00
Sergey Sharybin
f42bb9d278
Depsgraph: Ignore groups from copy on write expansion
...
Groups will not have IDs in the dependency graph, so we shouldn't
create them for CoW as well.
2017-07-20 13:27:34 +02:00
Campbell Barton
f5f34a9aa6
RNA: face-map access
...
Currently RNA doesn't give us a good way of accessing singleton layers,
for now expose as a layer list (skin & paint-pask do this too).
Noted in T47811 that this should be changed.
2017-07-20 19:52:26 +10:00
Campbell Barton
819f3b37da
BMesh face map layer access
2017-07-20 19:52:26 +10:00
Sergey Sharybin
0e2f8ed8a6
Depsgraph: Move strict checks under ifdef blocks
...
Those checks are not always helpful, since id remapping doesn't want to
worry about which components to tag for update. Perhaps in the future we
will introduce special flag which would mean "tag everything possible"/
2017-07-20 09:44:09 +02:00
Julian Eisel
827dc700ba
Fix T51969: Filebrowser "Open File" button disappear when double-click thumbnail
...
This reverts commit 82ba89b042 (which caused T51969) and adds an
alternative fix (don't unset area stored in modal handler for fileselect
handlers).
2017-07-19 21:46:30 +02:00
Campbell Barton
adc43ff43f
Merge branch 'master' into blender2.8
2017-07-20 03:53:44 +10:00
Campbell Barton
6e90294e08
Fix topology mirror ignoring center verts
...
Caused select-mirror to fail with edges & faces.
2017-07-20 03:52:53 +10:00
Clément Foucault
7fd4ad448c
Clay Engine: Fix blue noise warning when compiling without clay.
2017-07-19 18:17:56 +02:00
Clément Foucault
02e318e8b9
Eevee: Fix crash when using lamps in dupli groups.
2017-07-19 18:17:56 +02:00
Dalai Felinto
2382f979e2
Doversion: Set Clay when opening "Blender Render" engine scenes
...
We get already enough reports of people complaining about crashes on
edit mode unaware that they are in the non-supported Blender Render
engine.
Blender Render is going away, no reason to keep it around. Once we have
a nice fallback on Eevee and fast file loading we can default to Eevee
instead.
2017-07-19 18:14:50 +02:00
Sergey Sharybin
9f9244b6ae
Depsgraph: Remove redundant argument from add_id_node()
2017-07-19 17:31:32 +02:00
Sergey Sharybin
e29c54674c
Depsgraph: Fix strict compiler error with copy on write disabled
2017-07-19 16:26:22 +02:00
Sergey Sharybin
53c1d15675
Depsgraph: Fix particle system freeing accessing freed particle settings
...
Need to ensure CoW IDs are freed in the right order.
2017-07-19 16:21:12 +02:00
Sergey Sharybin
496d18614f
Depsgraph: Fix heap use after free when freeing scene with compositor
...
This is the fake ID nature of compositor again. Need to discard such
pointers before freeing datablock even for scenes (before it was done
for objects only).
2017-07-19 15:20:07 +02:00
Sergey Sharybin
6bb7a4cdf2
Depsgraph: Fix assert failure on Cycles render
...
Was happening when there was material in bmain but not used by any object.
2017-07-19 15:20:07 +02:00
Sergey Sharybin
17dcdbcf16
Depsgraph: Fix remapping of node trees when they reference self material
2017-07-19 15:20:07 +02:00
Sergey Sharybin
e49aa6beac
Depsgraph: Add missing expansion od custom bone shapes
2017-07-19 15:20:07 +02:00