Blender Git Commit Log
Git Commits -> Revision 6578db5
Revision 6578db5 by Bastien Montagne (master) September 27, 2021, 16:09 (GMT) |
Fix T91691: Selecting "Remove unused slots" in Materials panel removes slots that are assigned to particle systems/hair. `BKE_object_material_slot_used` would only check obdata usages, but particle settings can also (weirdly enough) use objects' material slots. So now, as its name suggests, `BKE_object_material_slot_used` does take an object as parameter, and also checks for potential slot usage from psys in the object. |
Commit Details:
Full Hash: 6578db57cd878a94bdbdabe953c8819625c5a811
Parent Commit: 824733e
Lines Changed: +27, -14
7 Modified Paths:
/source/blender/blenkernel/BKE_material.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/gpencil_curve.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/material.c (+21, -7) (Diff)
/source/blender/editors/gpencil/gpencil_edit.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_mesh.c (+1, -1) (Diff)
/source/blender/editors/object/object_add.c (+1, -2) (Diff)
/source/blender/editors/render/render_shading.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/gpencil_curve.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/material.c (+21, -7) (Diff)
/source/blender/editors/gpencil/gpencil_edit.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_mesh.c (+1, -1) (Diff)
/source/blender/editors/object/object_add.c (+1, -2) (Diff)
/source/blender/editors/render/render_shading.c (+1, -1) (Diff)