fix for py errors and missing return

This commit is contained in:
2009-11-23 09:28:42 +00:00
parent 8224dff9e2
commit 7617736bd1
2 changed files with 5 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ class DATA_PT_modifiers(DataButtonsPanel):
col.label(text="Vertex Group::")
col.prop_pointer(md, "vertex_group", ob, "vertex_groups", text="")
sub = col.column()
sub.active = md.vertex_group
sub.active = bool(md.vertex_group)
sub.prop(md, "invert")
split = layout.split()
@@ -283,7 +283,7 @@ class DATA_PT_modifiers(DataButtonsPanel):
col.label(text="Vertex group:")
col.prop_pointer(md, "vertex_group", ob, "vertex_groups", text="")
sub = col.column()
sub.active = md.vertex_group
sub.active = bool(md.vertex_group)
sub.prop(md, "protect")
if wide_ui:
@@ -359,7 +359,7 @@ class DATA_PT_modifiers(DataButtonsPanel):
col.prop_pointer(md, "vertex_group", ob, "vertex_groups", text="")
sub = col.column()
sub.active = md.vertex_group
sub.active = bool(md.vertex_group)
sub.prop(md, "invert")
def MESH_DEFORM(self, layout, ob, md, wide_ui):
@@ -376,7 +376,7 @@ class DATA_PT_modifiers(DataButtonsPanel):
col.prop_pointer(md, "vertex_group", ob, "vertex_groups", text="")
sub = col.column()
sub.active = md.vertex_group
sub.active = bool(md.vertex_group)
sub.prop(md, "invert")
layout.separator()