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:
Bastien Montagne 2014-01-25 09:01:32 +01:00
parent c0a4089265
commit c7ac0edb34

@ -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")