diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-01-25 12:01:32 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-01-25 12:01:32 +0400 |
commit | c7ac0edb342d78d3aece53cd128288fbae584b0d (patch) | |
tree | 3cc08fd402c39ea02df3528a3defe7e8d255944c /release/scripts | |
parent | c0a40892652e89601060a9590ea0a6f0606d28bb (diff) |
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!).
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_particle.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 97ea332b044..01038c32293 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -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") |