[Bf-blender-cvs] [b69cf65] hair_immediate_fixes: Fixed some ui script errors.
Lukas Tönne
noreply at git.blender.org
Fri Oct 3 14:20:38 CEST 2014
Commit: b69cf6589361708b542d1df5c08e5e9842ffb46f
Author: Lukas Tönne
Date: Fri Oct 3 14:06:29 2014 +0200
Branches: hair_immediate_fixes
https://developer.blender.org/rBb69cf6589361708b542d1df5c08e5e9842ffb46f
Fixed some ui script errors.
===================================================================
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 fd9062d..2d54a8e 100644
--- a/release/scripts/startup/bl_ui/properties_particle.py
+++ b/release/scripts/startup/bl_ui/properties_particle.py
@@ -336,14 +336,15 @@ class PARTICLE_PT_hair_dynamics(ParticleButtonsPanel, Panel):
class PARTICLE_UL_shape_keys(UIList):
def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
# assert(isinstance(item, bpy.types.ShapeKey))
- obj = active_data
+ psys = active_data
+ ob = psys.id_data
# key = data
key_block = item
if self.layout_type in {'DEFAULT', 'COMPACT'}:
split = layout.split(0.66, False)
split.prop(key_block, "name", text="", emboss=False, icon_value=icon)
row = split.row(align=True)
- if key_block.mute or (obj.mode == 'PARTICLE_EDIT' and not obj.use_shape_key_edit_mode):
+ if key_block.mute or (ob.mode == 'PARTICLE_EDIT' and not ob.use_shape_key_edit_mode):
row.active = False
if not item.id_data.use_relative:
row.prop(key_block, "frame", text="", emboss=False)
@@ -385,6 +386,7 @@ class PARTICLE_PT_shape_keys(ParticleButtonsPanel, Panel):
kb = psys.active_shape_key
enable_edit = ob.mode != 'PARTICLE_EDIT'
+ enable_edit_value = False
if ob.show_only_shape_key is False:
if enable_edit or (ob.type == 'MESH' and ob.use_shape_key_edit_mode):
More information about the Bf-blender-cvs
mailing list