Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-01-25 12:01:32 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-01-25 12:01:32 +0400
commitc7ac0edb342d78d3aece53cd128288fbae584b0d (patch)
tree3cc08fd402c39ea02df3528a3defe7e8d255944c
parentc0a40892652e89601060a9590ea0a6f0606d28bb (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!).
-rw-r--r--release/scripts/startup/bl_ui/properties_particle.py2
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")