Blender Git Loki

Git Commits -> Revision 09f14b3

Revision 09f14b3 by Hans Goudey (master)
September 15, 2021, 15:51 (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: 09f14b38f2d0c22b396dcd6c15bf959631ed1bfd
Parent Commit: 5841f86
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