Fix T38359: Not a bug, but better to grey out Material selector of particles when using Object or Group render type (since we always use duplicated objects' materials in this case!).
This commit is contained in:
@@ -800,6 +800,8 @@ class PARTICLE_PT_render(ParticleButtonsPanel, Panel):
|
||||
part = particle_get_settings(context)
|
||||
|
||||
row = layout.row()
|
||||
if part.render_type in {'OBJECT', 'GROUP'}:
|
||||
row.enabled = False
|
||||
row.prop(part, "material_slot", text="")
|
||||
if psys:
|
||||
row.prop(psys, "parent")
|
||||
|
Reference in New Issue
Block a user