Blender Git Commit Log

Git Commits -> Revision 8f89196

Revision 8f89196 by Hans Goudey (master)
December 23, 2021, 00:15 (GMT)
Fix T94232: No selection with set material node empty material list

If the input mesh had no materials already, the new material would
become the only material on the mesh, meaning the material was
added to all of the faces, instead of just the selected faces.

The mesh primitive nodes in geometry nodes already add an empty
slot by default, so this only affects outside geometry.

The fix is just adding an empty slot before the new slot, so the
non-selected material indices can still point to an empty slot.

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

Commit Details:

Full Hash: 8f89196be252cd541a0669c0aed02f4ad457e39d
Parent Commit: 60c59d7
Lines Changed: +6, -0

1 Modified Path:

/source/blender/nodes/geometry/nodes/node_geo_set_material.cc (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021