fix for py errors and missing return
authorCampbell Barton <ideasman42@gmail.com>
Mon, 23 Nov 2009 09:28:42 +0000 (09:28 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 23 Nov 2009 09:28:42 +0000 (09:28 +0000)
release/scripts/ui/properties_data_modifier.py
source/blender/editors/space_view3d/view3d_draw.c

index 5a308d0849149e0fddd1aa50b75070a825b9331b..6fe0ded6efea2f62d3204065d3768444e0543780 100644 (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()
index ec8fc869d72a7dd2bd3c73d4604fd0afd8921d56..acb822836040f62e1e48db85f101319a614b0c91 100644 (file)
@@ -193,7 +193,7 @@ void view3d_clr_clipping(void)
        }
 }
 
-static test_clipping(float *vec, float clip[][4])
+static int test_clipping(float *vec, float clip[][4])
 {
        float view[3];
        VECCOPY(view, vec);