Dalai Felinto
075def8fbd
Util function to determine number of digits from an integer
2018-01-19 16:54:07 -02:00
Sergey Sharybin
fa91b43e8c
Cycles: Make it more proper check on vectorization flags from DebugFlags
...
Mimics to checks in system_cpu_support() checks.
2018-01-19 15:48:42 +01:00
Dalai Felinto
edf053ff63
Outliner Python UI cleanup: remove KEYMAPS
...
This was removed since 2013 (ef765b3606 ). It should have been removed back
then from the UI file too.
2018-01-19 12:45:57 -02:00
Sergey Sharybin
ccec1e7667
Cycles: Cleanup, stop using debug flags in system utilities
...
Debug flags are to be controlling render behavior, nothing to do with low level
system utilities.
it was simple to hack, but logically is wrong. Lets do things where they are
supposed to be done!
2018-01-19 15:22:32 +01:00
Sergey Sharybin
54632dc830
Cycles: Remove util_debug include from kernel code
...
Not sure why it was in there, all the debug flags stuff is to be handled outside
of kernel.
2018-01-19 15:21:34 +01:00
Sergey Sharybin
8e1dd7ed81
Cycles: Remove unneeded include statements
...
Also try to move them from headers to implementation files as much as possible.
2018-01-19 15:19:45 +01:00
Brecht Van Lommel
0fe41009f0
Fix T53830: Cycles OpenCL debug assert on macOS,
...
This was probably harmless besides some unnecessary memory usage due to
aligning allocations too much.
2018-01-19 11:35:07 +01:00
Campbell Barton
889321e22b
Cleanup: reaname LINKLIST_FOREACH -> LISTBASE
...
LinkList's are a different API, no need to confuse things.
2018-01-19 21:39:18 +11:00
Campbell Barton
5a61c1de82
Fix T53786: Proportional size from redo ignored
...
Changing PET size while transforming stores the size in the
tool settings, but changing in the redo panel didn't.
2018-01-19 21:09:16 +11:00
Campbell Barton
0cddc7e300
WM: operator flag to check repeat/redo execution
2018-01-19 21:07:43 +11:00
Campbell Barton
53e062da94
Cleanup: sync w/ blender2.8 branch
...
Split screen_draw.c from screen_edit.c (avoid conflicts syncing).
2018-01-19 17:57:37 +11:00
mano-wii
ebf01d44ee
WM: window draw callbacks and split preview snap
...
This moves window overlay from hard coded flags into drawing callbacks.
It also supports snapping (holding Ctrl).
2018-01-19 17:15:45 +11:00
Campbell Barton
7a24e0d175
Cleanup: typos
2018-01-19 15:34:54 +11:00
Mai Lavelle
abb3a86e10
Fix T53833: Particle Info node and Displacement Crash
...
The displacement shared was running before particle data was copied to the
device causing bad memory access when the particle info node was used. Fix
is simply to move particle update before mesh update so the data is
available to displacement shaders.
(Altho this fixes the crash the particle info node is still mostly useless
with displacement for now...)
2018-01-18 22:40:48 -05:00
Campbell Barton
368414efac
Fix T53823: Particle weight brush crash
...
Entering particle edit mode w/ the weight brush enabled crashed
on non-hair particle systems.
2018-01-19 12:25:09 +11:00
Campbell Barton
2b9fb723ed
Fix T53832: Particle weight paint crash
...
Drawing hair weights read before the hair array start.
This code could be improved since it currently copy-pastes,
from do_particle_interpolation, but this would need larger changes.
For now just correct existing logic.
2018-01-19 12:14:53 +11:00
Campbell Barton
42a562496b
Fix memory leak in recent curve refactor
...
5b25605761fb7
2018-01-18 20:54:59 +11:00
Sybren A. Stüvel
7b3e441bcf
Improved docstring of mathutils.Matrix.lerp()
2018-01-18 09:58:14 +01:00
Sybren A. Stüvel
9811150952
Improve docstring for mathutils.Matrix.decompose()
2018-01-18 09:38:01 +01:00
Campbell Barton
001789d733
Fix T53808: VSE doesn't show scene strip markers
2018-01-18 14:49:09 +11:00
Campbell Barton
6880a549ba
Fix weight particle brush versioning
2018-01-18 14:02:26 +11:00
Campbell Barton
9b04a47070
Cleanup: label scene flags more clearly
...
Also correct typo in enum name
2018-01-18 13:51:49 +11:00
Campbell Barton
2be8598fe7
Fix T53811: "bmesh.ops.split" crash
2018-01-18 12:36:25 +11:00
mano-wii
7ffe838473
WM: improved area resize snapping
...
Instead of 10px steps, snap to mid-point & adjacent edges.
Not yet implemented for split preview.
2018-01-18 11:33:51 +11:00
Brecht Van Lommel
e6df02861e
Fix buffer overflow vulnerability in curve, font, particles code.
...
Solves these security issues from T52924:
CVE-2017-12102
CVE-2017-12103
CVE-2017-12104
While the specific overflow issue may be fixed, loading the repro .blend
files may still crash because they are incomplete and corrupt. The way
they crash may be impossible to exploit, but this is difficult to prove.
Differential Revision: https://developer.blender.org/D3002
2018-01-18 00:54:07 +01:00
Brecht Van Lommel
e04d7c49dc
Fix buffer overflow vulnerabilities in mesh code.
...
Solves these security issues from T52924:
CVE-2017-12081
CVE-2017-12082
CVE-2017-12086
CVE-2017-12099
CVE-2017-12100
CVE-2017-12101
CVE-2017-12105
While the specific overflow issue may be fixed, loading the repro .blend
files may still crash because they are incomplete and corrupt. The way
they crash may be impossible to exploit, but this is difficult to prove.
Differential Revision: https://developer.blender.org/D3002
2018-01-18 00:54:07 +01:00
Brecht Van Lommel
e0f2c7aff4
Fix Linux/GCC compiler warning in recent fixes.
2018-01-18 00:54:07 +01:00
Campbell Barton
235f578a0d
Loop Cut: Allow mouse placement w/ numeric input
...
D2973 by @cyaoeu
2018-01-18 10:55:53 +11:00
Brecht Van Lommel
07aed404cf
Fix buffer overflow vulernability in thumbnail file reading.
...
Fixes CVE-2017-2908 from T52924.
Differential Revision: https://developer.blender.org/D3001
2018-01-17 20:25:42 +01:00
Brecht Van Lommel
d30cc1ea0b
Fix buffer overflows in TIFF, PNG, IRIS, DPX, HDR and AVI loading.
...
Solves these security issues from T52924:
CVE-2017-2899
CVE-2017-2900
CVE-2017-2901
CVE-2017-2902
CVE-2017-2903
CVE-2017-2904
CVE-2017-2905
CVE-2017-2906
CVE-2017-2907
CVE-2017-2918
Differential Revision: https://developer.blender.org/D2999
2018-01-17 19:59:47 +01:00
Brecht Van Lommel
a6700362c7
Memory: add MEM_malloc_arrayN() function to protect against overflow.
...
Differential Revision: https://developer.blender.org/D3002
2018-01-17 19:59:47 +01:00
Sergey Sharybin
46204f843b
Depsgraph: Fix for fake dependency cycle being created for shape key drivers
...
One thing i'm not fully happy with is all this is_same_* functions. Need to
get rid of this by probably adding explicit entry/init/whatever nodes and
maybe making node criteria aware of whether key will be used as "from" or
as "to" node.
2018-01-17 18:02:51 +01:00
Sybren A. Stüvel
5d4ffb42a3
Delete Invalid Drivers: more lenient poll function
...
This function is faster and also allows for deletion of invalid drivers in
nested data blocks (for example in shape keys). Thanks @sergey!
2018-01-17 17:14:39 +01:00
Ray Molenkamp
a8fc44299b
external_libs: Add openjpeg to the mavc lib folders for cycles standalone.
2018-01-17 07:45:05 -07:00
Sybren A. Stüvel
0aaae43748
Simplified GRAPH_OT_driver_delete_invalid after feedback @aligorith
...
By adding the ANIMFILTER_NODUPLIS flag to the filter it'll only be
processing each F-Curve once, which means we can remove while iterating.
This also solves a potential issue when a datablock has a driver and is
shared among multiple objects.
2018-01-17 12:38:14 +01:00
Sybren A. Stüvel
c38ebf93e3
Added "Delete Invalid Drivers" operator
...
This operator is available in the graph editor in the Drivers mode, and
allows quick cleanup of drivers marked as 'invalid'.
2018-01-17 12:12:37 +01:00
Campbell Barton
7935a394b7
Correct simple deform versioning from D2989
2018-01-17 19:17:49 +11:00
Campbell Barton
a19e3bdad8
Fix T53810: Crash removing a scene used in render
...
Header drawing accesses the scene too.
2018-01-17 10:03:22 +11:00
Sergey Sharybin
9d1ae07d4f
Cleanup: Avoid ifdefs in multiple places
...
Define a helper macro. Makes code read easier.
2018-01-16 17:14:57 +01:00
Sergey Sharybin
b55111f8f6
Cleanup: Naming of depsgraph
2018-01-16 16:38:39 +01:00
Sybren A. Stüvel
4e0673927a
Alembic: don't explicitly pass NULL
2018-01-16 16:28:10 +01:00
Sybren A. Stüvel
6db0fd65ab
T53711: Alembic don´t import vertex colors correctly
...
An index stored in Alembic wasn't used. Often this index is a no-op
(i.e. index[n] = n), in which case the result was fine. However, when it
isn't, it caused issues.
2018-01-16 16:03:21 +01:00
Sergey Sharybin
0bdb1eab82
Sculpting: Fix uninitialized color being left for smooth meshes with hidden mask
2018-01-16 14:46:48 +01:00
Sergey Sharybin
7934e7ab83
Sculpting: Fix for "Hide Mask" does not work with multires
2018-01-16 14:31:52 +01:00
Sergey Sharybin
67e4b1d3e9
Fix missing node tree updates when unconnected node affects output via driver
...
Fixes T53794: Can't control color ramp node color values with drivers
2018-01-16 12:06:22 +01:00
Sergey Sharybin
0b500ba147
Depsgraph: Fix fake cyclic dependencies for node tree drivers
...
There was a fake cyclic dependency happening when node of node tree is driving
another node of the same tree.
This is related to T53794, but more fixes is needed here.
2018-01-16 11:54:32 +01:00
Sergey Sharybin
45b5de9cb3
Depsgraph: Better relations name
2018-01-16 11:43:05 +01:00
Sergey Sharybin
1d763b5395
Depsgraph: Check for ID match when checking if operations corresponds to the same bone
2018-01-16 11:41:50 +01:00
Sergey Sharybin
b974d0da4d
Depsgraph: Cleanup, indentation
2018-01-16 11:40:02 +01:00
Sergey Sharybin
b667020310
Depsgraph: Cleanup, brace placement\
2018-01-16 11:38:44 +01:00