diff options
Diffstat (limited to 'release')
-rw-r--r-- | release/ui/buttons_data_modifier.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/release/ui/buttons_data_modifier.py b/release/ui/buttons_data_modifier.py index c087e5f5e36..6de2d645471 100644 --- a/release/ui/buttons_data_modifier.py +++ b/release/ui/buttons_data_modifier.py @@ -23,9 +23,9 @@ class DATA_PT_modifiers(DataButtonsPanel): row.itemL(); for md in ob.modifiers: - box = layout.template_modifier(md) + box = layout.template_modifier(context, md) - if box: + if md.expanded: if md.type == 'ARMATURE': self.armature(box, md) if md.type == 'ARRAY': @@ -103,7 +103,7 @@ class DATA_PT_modifiers(DataButtonsPanel): if md.fit_type == 'FIT_LENGTH': layout.itemR(md, "length") if md.fit_type == 'FIT_CURVE': - layout.itemR(md, "curve") + layout.itemR(md, "curve") split = layout.split() @@ -188,7 +188,7 @@ class DATA_PT_modifiers(DataButtonsPanel): layout.itemL(text="See Collision panel.") def curve(self, layout, md): - layout.itemR(md, "object") + layout.itemR(md, "curve") layout.itemR(md, "vertex_group") layout.itemR(md, "deform_axis") @@ -238,7 +238,7 @@ class DATA_PT_modifiers(DataButtonsPanel): # Missing: "Reset" and "Recenter" def lattice(self, layout, md): - layout.itemR(md, "object") + layout.itemR(md, "lattice") layout.itemR(md, "vertex_group") def mask(self, layout, md): @@ -250,7 +250,7 @@ class DATA_PT_modifiers(DataButtonsPanel): layout.itemR(md, "inverse") def meshdeform(self, layout, md): - layout.itemR(md, "object") + layout.itemR(md, "mesh") layout.itemR(md, "vertex_group") layout.itemR(md, "invert") layout.itemR(md, "precision") @@ -402,4 +402,4 @@ class DATA_PT_modifiers(DataButtonsPanel): col.itemR(md, "width", slider=True) col.itemR(md, "narrowness", slider=True) -bpy.types.register(DATA_PT_modifiers)
\ No newline at end of file +bpy.types.register(DATA_PT_modifiers) |