Commit Graph

63617 Commits

Author SHA1 Message Date
Antonioya
4c712fd17e Fix T56263: Crash when sculpting a GP object with animation
This is a limitation of the current operator design.

I have added a test to be sure the operator is not initializated while play animations to avoid segment fault.

In the future, we can enable this option again, but it will need a operator redesign.
2018-08-07 14:15:41 +02:00
Antonioya
d04e8f41ae Cleanup GP: Change playing field to boolean 2018-08-07 13:56:30 +02:00
Antonioya
b274a01e58 Fix T56261: Grease Pencil simplify options get segment fault
The depsgraph was not updated as expected with the function used and the cache was not set as dirty.
2018-08-07 13:36:47 +02:00
Campbell Barton
ac2cdb21e6 Fix T56252: Selectable Bases includes hidden objects 2018-08-07 13:22:07 +10:00
Campbell Barton
f707984743 Fix T56258: Solidify assert w/ empty mesh 2018-08-07 12:58:08 +10:00
Campbell Barton
3d083f376b Fix T56255: Crash w/ collection access from Python 2018-08-07 12:45:01 +10:00
Antonioya
563e17091d GP: Add Simplify Shader FX option
This option was missing when old VFX modifers were backported as Shader FX.
2018-08-06 17:01:47 +02:00
Antonioya
d07a408a40 GP: Fix Front z-depth display precision
The zdepth 0 was clipped and need 0.000001
2018-08-06 16:11:53 +02:00
Bastien Montagne
d890ad37a8 Fix horrible invalid mesh freeing in weightvg modifiers.
Comes from rB7661f8a65b. Found while checking on T55818, but not solving
that issue of course.
2018-08-06 11:49:42 +02:00
Bastien Montagne
e680a9d80d Cleanup LIB_ID_COPY_ flags a bit, add missing comment. 2018-08-06 11:49:42 +02:00
Campbell Barton
c085d9b1be Merge branch 'master' into blender2.8 2018-08-06 17:13:27 +10:00
Campbell Barton
907413ca65 Fix T55012: Corruption editing screen keymap 2018-08-06 17:08:39 +10:00
Campbell Barton
f7b1fec463 Cleanup: unused vars 2018-08-06 12:53:31 +10:00
Campbell Barton
14d9aeacce Cleanup: line length 2018-08-06 12:53:05 +10:00
Bastien Montagne
53c56b2b5f Fix T54915: Usercount of active action increases when editing things with COW enabled.
Just pass along the 'no user refcount' flag to animdata copy function.
2018-08-05 18:50:01 +02:00
Antonioya
75e34b9002 GP: Add python api to create brush settings for grease pencil 2018-08-05 16:19:24 +02:00
Antonioya
6d0835eca7 GP: Fix NULL pointer when preview is not ready
The preview cannot be ready when create a material with python
2018-08-05 11:07:47 +02:00
Bastien Montagne
9a8541d029 Minor fix unused var compiler warning. 2018-08-05 09:19:15 +02:00
Antonioya
ccf794dfc4 GP: Fix stupid mistake in mirror modifier
The object can be NULL. This was a line used in debug that it was not removed.

Also removed an old function not used.

Thanks to Charlie Jolly for catching this error.
2018-08-04 15:59:57 +02:00
Bastien Montagne
4edae3cc2d Merge branch 'master' into blender2.8 2018-08-04 13:43:10 +02:00
Bastien Montagne
a56ec3dfe3 Fix T56222: Bevel Modifier bug (uninitialized value). 2018-08-04 13:40:38 +02:00
Charlie Jolly
27ffd37c15 Fix GP mirror modifier axis 2018-08-04 09:49:15 +02:00
Antonioya
1ae77fe9c1 Grease Pencil: Set Lock Axis default to Y axis 2018-08-03 21:06:49 +02:00
Antonioya
5470565527 Cleanup: Fix comment 2018-08-03 17:41:20 +02:00
Antonioya
f2a8e55fc5 New grease pencil primitive STROKE
This creates a simple stroke with several colors to have a basic structure to start drawing.
2018-08-03 17:37:21 +02:00
Antonioya
7288d4d8c4 Replace wrong aasign material flag to BKE_MAT_ASSIGN_USERPREF 2018-08-03 16:37:07 +02:00
Clément Foucault
fe8dcffd79 GPUShader: Fix warning in release build. 2018-08-03 14:34:05 +02:00
Antonioya
5d4b981bc2 Add missing single user management for grease pencil materials 2018-08-03 13:41:56 +02:00
Antonioya
5fd3d1fda4 Fix T56217: Segment Fault when using the Fill Brush on Blank GP Object
The error was in any GP object without layers.

Also added a check to avoid paint in a locked layer.
2018-08-03 10:28:39 +02:00
Bastien Montagne
6c8cc91f81 Fix T56180: Grease Pencil edit mode select menu crash.
Note that there are most certainly many other operators that’d need that
same flag... Don’t have time to hunt them down currently, will just fix
as issues are found, for now.
2018-08-03 10:25:06 +02:00
Bastien Montagne
56fd63e1ad Fix T55791: blender 2.8 crash on redoing 'snap to cursor' with Offset option ON.
Many snap_to operators need a fully evaluated depsgraph to run
properly...
2018-08-03 10:17:00 +02:00
Bastien Montagne
cd5ee24656 Operators: add a new flag stating that operator needs access to evaluated data.
For now, that flag is only used in redo code, since after undo step
depsgraph is totally empty... We *may* want to add at least an assert in
op calling code too, though?
2018-08-03 10:15:34 +02:00
Bastien Montagne
b5a1e3d471 Depsgraph: add helper to ensure a given scene/view_layer graph is up-to-date.
Since that call make the graph active, it should only be used in active
editing context aware code (i.e. essentially, operators).
2018-08-03 10:13:33 +02:00
Clément Foucault
f55863acd4 DRW: Augment Debug messages 2018-08-03 09:49:31 +02:00
Clément Foucault
fa0f938b11 Eevee: Fix assert with hair drawing
This remove unused clip_block when not needed and the useless ubo bind that
were put there for the sake of not crashing.
2018-08-03 09:49:31 +02:00
Campbell Barton
3eab49dd36 Icons: add particle brush icons 2018-08-03 11:43:50 +10:00
Clément Foucault
2a8413a0dd Eevee: Don't show probe display when not using scene lighting
The display is broken otherwise.
2018-08-02 21:12:08 +02:00
Clément Foucault
9887b32e73 Eevee: Fix missing UBO bind. 2018-08-02 20:52:07 +02:00
Antonioya
836db3aee8 Add Assign Material option to Special menu (W key)
Also some renames and cleanups.
2018-08-02 19:35:29 +02:00
Antonioya
45751065c0 Add list of color to Assign color operator
It's more clear for user to see the name of the color
2018-08-02 19:21:23 +02:00
Clément Foucault
acdb136dce DRW: Add UBO binding checking routine. 2018-08-02 18:33:49 +02:00
Clément Foucault
e7adf1dfb0 Cleanup: Fix compilation warnings. 2018-08-02 18:33:49 +02:00
Clément Foucault
bd7ab6b989 DRW: Cleanup: Fix header naming. 2018-08-02 18:33:49 +02:00
Clément Foucault
8f6ff3adfa GPUShader: Add name for debugging & identifying shaders. 2018-08-02 18:33:49 +02:00
Clément Foucault
3578212e46 Eevee: Fix missing UBO binds.
Some of them are unecessary and should be removed from the shader instead.

But for now we need a quick fix for the crashes happening on some platforms.

See T55475.
2018-08-02 18:33:49 +02:00
Antonioya
ce551ada92 Fix missing type for material arry
This function was called by RNA Api and had grease pencil object type missing.
2018-08-02 18:03:01 +02:00
Antonioya
909556aa26 Fix wrong RNA Api parameter definition 2018-08-02 17:45:32 +02:00
Bastien Montagne
9914c05bd7 Depsgraph: fix some DEG queries crashing with new, empty graph.
Calling code is responsible to check on NULL pointers here, or ensure
is does have a fully built and evaluated depsgraph, but this should
never crash in DEG queries themselves.
2018-08-02 17:17:04 +02:00
Bastien Montagne
771973869d Fix assert in UI string trimming code when we have 'protected' right part. 2018-08-02 16:39:15 +02:00
Campbell Barton
f36855f0fd UI: show all particle brush settings in topbar
Also show particle brush in tool-properties panel.
2018-08-02 22:10:38 +10:00