2.5 Modifier UI Script:
authorThomas Dinges <blender@dingto.org>
Fri, 10 Jun 2011 20:41:22 +0000 (20:41 +0000)
committerThomas Dinges <blender@dingto.org>
Fri, 10 Jun 2011 20:41:22 +0000 (20:41 +0000)
* Tiny improvement, no need to have split declaration outside of if branch.

release/scripts/startup/bl_ui/properties_data_modifier.py

index 75069993521bca602baea6552bb05fd075696e6c..586675f2ca013e296701420253fc3ab07e484e94 100644 (file)
@@ -483,11 +483,10 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
         col.label(text="Mode:")
         col.prop(md, "wrap_method", text="")
 
-        split = layout.split(percentage=0.25)
-
-        col = split.column()
-
         if md.wrap_method == 'PROJECT':
+            split = layout.split(percentage=0.25)
+            
+            col = split.column()
             col.label(text="Axis:")
             col.prop(md, "use_project_x")
             col.prop(md, "use_project_y")
@@ -499,7 +498,6 @@ class DATA_PT_modifiers(ModifierButtonsPanel, bpy.types.Panel):
             col.prop(md, "use_positive_direction")
 
             col = split.column()
-
             col.label(text="Cull Faces:")
             col.prop(md, "cull_face", expand=True)