forked from bartvdbraak/blender
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:
parent
c0a4089265
commit
c7ac0edb34
@ -800,6 +800,8 @@ class PARTICLE_PT_render(ParticleButtonsPanel, Panel):
|
|||||||
part = particle_get_settings(context)
|
part = particle_get_settings(context)
|
||||||
|
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
|
if part.render_type in {'OBJECT', 'GROUP'}:
|
||||||
|
row.enabled = False
|
||||||
row.prop(part, "material_slot", text="")
|
row.prop(part, "material_slot", text="")
|
||||||
if psys:
|
if psys:
|
||||||
row.prop(psys, "parent")
|
row.prop(psys, "parent")
|
||||||
|
Loading…
Reference in New Issue
Block a user