Page MenuHome

Fix T94232: No selection with set material node empty material list
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Dec 22 2021, 7:55 PM.

Details

Summary

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 geometry created outside of nodes.

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.

BeforeAfter

Diff Detail

Repository
rB Blender
Branch
fix-set-material-no-selection (branched from master)
Build Status
Buildable 19593
Build 19593: arc lint + arc unit

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Dec 22 2021, 7:55 PM
Hans Goudey (HooglyBoogly) created this revision.

Actually, this is not a bug, oops!

Actually this is a bug!

  • Remove unnecessary check
This revision is now accepted and ready to land.Dec 22 2021, 9:29 PM