Campbell Barton
1443235aa4
Cleanup: sync w/ blender2.8 branch
...
Also make some args const
2018-01-23 12:14:26 +11:00
Dalai Felinto
0f69026b1c
Fix windows building (log10)
...
Error: math_base_inline.c(402): error C2668: 'log10' : ambiguous call to
overloaded function
2018-01-22 11:37:19 -02:00
Campbell Barton
fb4582134a
Fix T53850: Lock to Cursor breaks 3D manipulators
2018-01-22 20:14:12 +11:00
Campbell Barton
c723e91ee1
WM: add mouse-move after smooth-view
...
When hot-spots moved under the pointer,
clicking wouldn't activate the correct item.
2018-01-22 14:09:17 +11:00
Campbell Barton
a841e65b85
Cleanup: unused var
2018-01-22 10:00:40 +11:00
Germano
8d671f6f65
Update description of the screen_draw functions
2018-01-21 18:22:39 -02:00
Germano
46267fe7bf
WM: Fix snapping on split area without preview
...
In addition to removing unnecessary variables and `tag_redraw` whenever the factor changes;
2018-01-21 18:18:38 -02:00
Campbell Barton
e767d21b74
Cleanup: BLI_kdopbvh avoid negative array access
...
It's harder to reason about array access with negative indices.
2018-01-21 20:17:29 +11:00
Campbell Barton
a7dc5e12ac
Cleanup: style
2018-01-21 11:41:52 +11:00
Brecht Van Lommel
e53447c137
Fix old files with changed node socket type not loading correctly.
...
This would lead to sock.default_value pointing to the wrong data type,
possibly causing crashes. Unfortunately, this bug will still exist for
older Blender versions that try to load newer files, which makes
changing the type of a node socket problematic.
2018-01-20 22:42:59 +01:00
Campbell Barton
dd35048602
Cleanup: doxy groups for screen_ops.c
2018-01-21 01:41:58 +11:00
Campbell Barton
949e56dff1
Fix screen split preview refresh issues
...
Switching direction didn't refresh, also cursors were flipped.
2018-01-21 00:41:48 +11:00
Dalai Felinto
431d5772bb
Fixup for integer digits commit
2018-01-19 17:04:19 -02:00
Dalai Felinto
075def8fbd
Util function to determine number of digits from an integer
2018-01-19 16:54:07 -02: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
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
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
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