Blender Git Loki

Git Commits -> Revision 8ec6b1f

Revision 8ec6b1f by Hans Goudey (temp-ui-tweaks)
September 22, 2021, 13:54 (GMT)
Geometry Nodes: Add fields version of material nodes

This commit moves the old material nodes to a "legacy" folder and adds
versions of the nodes that work with fields.

The "Select by Material" node is a field node now, so it doesn't have
a geometry output. This is an improvement because there are fewer links
to connect, and it's more easily usable in different situations.
It's also called "Material Selection", since it's more of an input
than an action now.

It's sometimes necessary to use the attribute capture node to get a
more predictable interpolation to mesh faces. This is because the
selection field input is always evaluated on the face domain, so
attribute inputs are interpolated before they are booleans, so they
cannot use the new interpolations from rB5841f8656d9580d7b9.

Differential Revision: https://developer.blender.org/D12456

Commit Details:

Full Hash: 8ec6b1fc4c1946137e49b4150741b54597114f26
Parent Commit: f3241b8
Committed By: Pablo Vazquez
Lines Changed: +352, -108

3 Added Paths:

/source/blender/nodes/geometry/nodes/legacy/node_geo_material_assign.cc (+95, -0) (View)
/source/blender/nodes/geometry/nodes/legacy/node_geo_select_by_material.cc (+92, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_material_selection.cc (+131, -0) (View)

1 Deleted Path:

/source/blender/nodes/geometry/nodes/node_geo_select_by_material.cc (+0, -92)

7 Modified Paths:

/release/scripts/startup/nodeitems_builtins.py (+2, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/node.cc (+4, -1) (Diff)
/source/blender/nodes/CMakeLists.txt (+4, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_material_assign.cc (+16, -13) (Diff)
/source/blender/nodes/NOD_geometry.h (+4, -1) (Diff)
/source/blender/nodes/NOD_static_types.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021