Blender Git Loki

Git Commits -> Revision 6c241b2

November 25, 2020, 20:34 (GMT)
Geometry Nodes: Node editor header interaction with active modifier

This commit makes the way the selector in the middle of the node editor
header interacts with the active modifier much more intuitive.

- With no active modifier, or when the active modifier is a non-node
modifier, the "new" operator adds a new nodes modifier.
- With an active node modifier, the drop-down affects the modifier's
selected node group.
- With no active object, there is no drop-down in the header.
- The node editor's node group always updates, even when there is no
active modifier.
- Pinning disables the drop-down and keeps the same node group
selected, regardless of the context.

This is designed to work similarly to materials and material slots,
which should be familiar to any Blender user. One workflow not allowed
by this design is editing any geometry node group, regardless of the
context, but if that turns out to be an issue it should be solved in a
similar way for all node editors.

Commit Details:

Full Hash: 6c241b2dd7fc48e8981335e7750dd378b5e4f02b
Parent Commit: c1b655c
Lines Changed: +76, -23

3 Modified Paths:

/release/scripts/startup/bl_operators/geometry_nodes.py (+62, -15) (Diff)
/release/scripts/startup/bl_ui/space_node.py (+14, -1) (Diff)
/source/blender/nodes/geometry/node_geometry_tree.cc (+0, -7) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021