Brecht Van Lommel
b812dfd161
Fix T56622: crash and other bugs deleting scenes.
...
Simplify library remapping code to handle special collection/object links
in postprocess. Previously base contained the actual object link which
needed special handling in preprocess, now objects are linked through
collection and the base cache can be updated in postprocess.
2018-09-03 16:29:59 +02:00
Dalai Felinto
27c954386b
Weightpaint mode: Removing barbarian batch tagging on engine init
...
This was introduced in the original implementation of weightpaint
in 2.8 (20f95de6ba ). But this is very shortsighted, we can't assume only one
object will be edited at once, nor should we tag things during drawing.
There is a chance this introduces "bugs". If it does, we then tackle them in the
proper way (usually tagging DEG after operators changing the weight paint data).
2018-09-03 11:17:53 -03:00
Bastien Montagne
f922881620
Fix T56666: Crash typing "w" in the search function.
...
One shall check object is a GPencil one, before trying to use ob->data...
2018-09-03 16:06:56 +02:00
Sergey Sharybin
101b2ce7b6
Depsgraph: Cleanup, put symbols to a proper namespace
2018-09-03 16:05:41 +02:00
Dalai Felinto
eb2226dde2
Multi-Object Editing: MESH_OT_bridge_edge_loops by Philippe Bachour
...
I (Dalai) did a few changes before committing:
* Code style (mostly tabs instead of space).
* Skip loop when no vert selected.
* Keeping comment on why always return FINISHED.
Maniphest Tasks: T54643
https://developer.blender.org/D3338
2018-09-03 10:52:50 -03:00
Sergey Sharybin
2580399498
Fix T56593: Crash when enabling collection with curves
...
Was missing update of ID blocks which are becoming visible.
2018-09-03 15:36:20 +02:00
Bastien Montagne
30a2ad8efe
Merge branch 'master' into blender2.8
2018-09-03 15:33:07 +02:00
Dalai Felinto
3dee8b4a12
Multi-Objects: OBJECT_OT_vertex_group_smooth
...
In this case we call the operation multiple times.
2018-09-03 10:30:59 -03:00
Bastien Montagne
c6bbe6c5aa
Fix (unreported) potentially giant memory leak in Cloth collision solver.
...
Not freeing its BVHTree in case there were no collision objects,
could quickly lead to hundreds of MB of memleak!
2018-09-03 15:30:33 +02:00
Sergey Sharybin
d57cb8fa22
Depsgraph: Use more meaningful name for flags storage
2018-09-03 15:20:06 +02:00
Campbell Barton
e152483a32
Tool System: add paint brush shortcut
2018-09-03 23:19:27 +10:00
Clément Foucault
0a26c122ed
Eevee: Fix missing meshes on Win + Intel HD 530/540
...
This is only a workaround. The real issue should be adressed by the
driver team upstream.
2018-09-03 14:38:06 +02:00
Brecht Van Lommel
c6037b39a1
Fix slow .blend file load due to recent accidentally committed debug code.
2018-09-03 14:20:34 +02:00
Sergey Sharybin
cd693955ad
Set active base to NULL if its object is gone
2018-09-03 13:42:47 +02:00
Sergey Sharybin
3451cb56db
Depsgraph: Cleanup, make it more obvious what ID references
2018-09-03 12:57:04 +02:00
Sergey Sharybin
6690816fe5
Depsgraph: Cleanup, make it more clear what function does
2018-09-03 12:55:26 +02:00
Sergey Sharybin
6ba5dc9147
Depsgraph: Generalize storage for already existing ID nodes
...
Currently no functional changes, just allows to store mo information.
2018-09-03 12:39:56 +02:00
Sergey Sharybin
296a1afc0c
Cleanup: Remove unused lay_updated
...
Is no longer used, having it around was more of a confusion than
anything else.
2018-09-03 12:17:55 +02:00
Sergey Sharybin
73a474dd8b
Depsgraph: Cleanup, indentation level
2018-09-03 12:11:11 +02:00
Bastien Montagne
cc03218962
Fix T56659: Flow UI: Checkboxes report wrong width, making layouts jump to multi-columns too soon.
...
Wrong handling of ideal width when splitting buttons and labels appart
for checkboxes...
2018-09-03 11:07:29 +02:00
Campbell Barton
4bfc236d39
Cleanup: warning
2018-09-03 18:24:45 +10:00
Antonioya
ff59553dc9
GP: Cleanup function parameter
...
There was a mix of enum parameters and int/bool values.
2018-09-03 10:14:13 +02:00
Campbell Barton
660477f4a4
UI: disable key shortcuts for tools
...
Only show shortcuts in the tooltips since they use different logic.
2018-09-03 13:56:33 +10:00
Campbell Barton
d015c1db3e
Cleanup: replace __import__ w/ import argument
2018-09-03 12:53:42 +10:00
Campbell Barton
88a893a838
Merge branch 'master' into blender2.8
2018-09-03 12:48:51 +10:00
Campbell Barton
7ff1750218
PyAPI: add optional imports to expression eval API
...
Avoids having to use `__import__` to access modules.
2018-09-03 12:43:43 +10:00
Campbell Barton
0c389862c4
Tool System: Show popup accelerators in tooltip
...
The tooltips for tools in the toolbar now show how to access.
2018-09-03 11:29:37 +10:00
Bastien Montagne
41f4d21079
Fix part of T56654: Freestyle hiding viewlayer buttons when there is no lineset.
...
Buttons' context 'path' has to bee handled carefully, especially when
building more than one step in a single call...
2018-09-02 15:30:06 +02:00
Campbell Barton
32e8f2e982
Keymap: Double tap A-Key to de-select all
...
Uses double click events for the keyboard, which wasn't used before.
Experimental feature suggested by @venomgfx
2018-09-02 21:41:30 +10:00
Campbell Barton
8c74462f18
Cleanup: move select all/none/invert into template
2018-09-02 21:25:14 +10:00
Campbell Barton
3cba77f16b
Merge branch 'master' into blender2.8
2018-09-02 19:45:56 +10:00
Campbell Barton
4bb8dba340
Cleanup: move keymap helpers into own file
2018-09-02 19:37:09 +10:00
Campbell Barton
0ddf3e110e
Cleanup: comment blocks
2018-09-02 18:51:31 +10:00
Campbell Barton
ae57383648
Cleanup: comment blocks
2018-09-02 18:28:27 +10:00
Campbell Barton
6abb37babc
Cleanup: style
2018-09-02 16:49:45 +10:00
Campbell Barton
83199b6430
Cleanup: shadow warning
2018-09-02 16:27:44 +10:00
Dalai Felinto
a5f950ed38
Fix MESH_OT_loop_select: Deselect object objects
...
Before that if you loop select a mesh, it would deselect the previous selected
edges of the selected mesh, leaving the other objects untouched.
2018-08-31 17:43:59 -03:00
Dalai Felinto
f6b902a9ca
Follow up to MESH_OT_offset_edge_loops
...
Committing this as a separate commit since we may want to keep this mode syncing
elsewhere. But for now it makes sense to do it like this.
2018-08-31 17:23:34 -03:00
milios
efd843b51c
Multi-Objects: MESH_OT_offset_edge_loops
...
Changes from reviewer (Dalai Felinto):
* Code style (replace tabs with spaces).
* Return OPERATOR_CANCELLED if no a single object get through.
Maniphest Tasks: T54643
https://developer.blender.org/D3392
2018-08-31 17:14:56 -03:00
Dalai Felinto
41759e74de
Fixup for MESH_OT_vertices_smooth_laplacian
...
Failing to repeat should return, but continue the object loop.
Should test for selected vertex, not face.
2018-08-31 17:02:37 -03:00
Dalai Felinto
3065dc435c
Fixup for multi-objects snap functions
...
Sanitizing the use of TransVertStore, making sure it is always freed.
Skip meshes with no vertex selected.
2018-08-31 16:46:16 -03:00
Dalai Felinto
0610c09f8c
Fix memleak on snap_curs_to_sel_ex
2018-08-31 16:25:37 -03:00
Dalai Felinto
b0c146a9eb
MESH_OT_symmetrize: Cleanup, get op->ptr props outside objects loop
2018-08-31 15:53:07 -03:00
n-kall
7f9768cb80
Multi-Objects: MESH_OT_symmetry_snap
...
Reviewers: dfelinto
Differential Revision: https://developer.blender.org/D3374
2018-08-31 15:52:16 -03:00
Dalai Felinto
53ae9b1034
MESH_OT_blend_from_shape: Add error when no selected vertex
...
This is just something simple I caught while testing the patch for multi-object.
2018-08-31 15:23:02 -03:00
Habib Gahbiche
6ae09dfcad
Multi-Object-Mode: MESH_OT_blend_from_shape
...
"Blend from Shape" lists keys from active object and applies to all selected
objects that have keys with a matching name.
Changes from reviewer (Dalai Felinto):
* Code Style.
* Move Object **objects after sanity check to prevent leak when
returning OPERATOR_CANCELLED.
* Skip objects that have no selected vertex.
* Fixed existent comments code-style: Since we are changing the indentation of
these lines, may as well correct this as well.
Differential Revision: https://developer.blender.org/D3656
2018-08-31 15:20:21 -03:00
Dalai Felinto
f3a1ca1872
MESH_OT_shape_propagate_to_all: Add error when no selected vertex
...
This is just something simple I caught while testing the patch for multi-object.
2018-08-31 14:21:35 -03:00
Habib Gahbiche
3a43528274
Multi-Objects: MESH_OT_shape_propagate_to_all
...
Pressing "Propagate to Shapes" now propagates the current shapes to the selected
object's respective keys, if at least one selected object has shape keys.
Discussion here:
https://devtalk.blender.org/t/behaviour-of-shape-keys-in-multi-object-mode/1956/4
Changes from reviewer (Dalai Felinto):
* Code style
* Error message
* Remove dead code
Reviewers: dfelinto
Differential Revision: https://developer.blender.org/D3651
2018-08-31 14:20:56 -03:00
Sergey Sharybin
7f36fb458c
Merge branch 'master' into blender2.8
2018-08-31 17:08:29 +02:00
Dalai Felinto
fede95aa68
Cleanup: edbm_do_smooth_laplacian_vertex_exec
2018-08-31 11:45:53 -03:00