[Bf-blender-cvs] [c7ac0ed] master: 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!).

Bastien Montagne noreply at git.blender.org
Sat Jan 25 09:02:27 CET 2014


Commit: c7ac0edb342d78d3aece53cd128288fbae584b0d
Author: Bastien Montagne
Date:   Sat Jan 25 09:01:32 2014 +0100
https://developer.blender.org/rBc7ac0edb342d78d3aece53cd128288fbae584b0d

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!).

===================================================================

M	release/scripts/startup/bl_ui/properties_particle.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py
index 97ea332..01038c3 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")




More information about the Bf-blender-cvs mailing list