Blender Git Loki

Git Commits -> Revision 72386c6

November 24, 2020, 03:38 (GMT)
UI: Improvements to interaction with active modifier

This commit includes these improvements to operators and how they
relate to the active modifier:

- Shortcuts performed while there is an active modifier will affect
only that modifier.
- Clicking anywhere on the empty space in a modifier's panel will make
it active.
- Clicking anywhere in the empty properties space will clear the
active.

These changes require some refactoring of object modifier code. First
is splitting up the modifier property invoke callback, which now needs
to be able to get the active modifier separately from the hovered
modifier for the different operators. Second is a change to removing
modifiers, where there is now a separate function to remove a modifier
from an object's list, in order to handle changing the active. Finally
the panel handler neeeds a small tweak so that this "click in panel"
event can be handled afterwards.

Commit Details:

Full Hash: 72386c64efd8a4234e46dcef067b37f596854437
Parent Commit: e68e897
Lines Changed: +219, -86

14 Modified Paths:

/release/scripts/presets/keyconfig/keymap_data/blender_default.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_modifier.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/fluid.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/modifier.c (+20, -0) (Diff)
/source/blender/blenkernel/intern/particle.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_panel.c (+2, -9) (Diff)
/source/blender/editors/object/object_data_transfer.c (+1, -1) (Diff)
/source/blender/editors/object/object_hook.c (+1, -1) (Diff)
/source/blender/editors/object/object_intern.h (+10, -4) (Diff)
/source/blender/editors/object/object_modifier.c (+151, -55) (Diff)
/source/blender/editors/object/object_relations.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+19, -1) (Diff)
/source/blender/modifiers/intern/MOD_ui_common.c (+1, -10) (Diff)
/source/blender/nodes/geometry/node_geometry_tree.cc (+8, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021