[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43170] trunk/blender/release/scripts/ startup/bl_ui: 2.6 UI Files:

Thomas Dinges blender at dingto.org
Thu Jan 5 17:04:33 CET 2012


Revision: 43170
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43170
Author:   dingto
Date:     2012-01-05 16:04:25 +0000 (Thu, 05 Jan 2012)
Log Message:
-----------
2.6 UI Files:
* Some code cleanup. 

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_data_curve.py
    trunk/blender/release/scripts/startup/bl_ui/space_clip.py

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_curve.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_curve.py	2012-01-05 15:45:57 UTC (rev 43169)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_curve.py	2012-01-05 16:04:25 UTC (rev 43170)
@@ -214,12 +214,12 @@
         if is_poly:
             # These settings are below but its easier to have
             # poly's set aside since they use so few settings
-            col = split.column()
-            col.label(text="Cyclic:")
-            col.prop(act_spline, "use_smooth")
-            col = split.column()
-            col.prop(act_spline, "use_cyclic_u", text="U")
-
+            row = layout.row()
+            row.label(text="Cyclic:")
+            row.prop(act_spline, "use_cyclic_u", text="U")
+            
+            layout.prop(act_spline, "use_smooth")
+            
         else:
             col = split.column()
             col.label(text="Cyclic:")
@@ -257,13 +257,13 @@
                 sub.prop(act_spline, "resolution_v", text="V")
 
             if not is_surf:
-                split = layout.split()
-                col = split.column()
-
+                col = layout.column()
                 col.label(text="Interpolation:")
-                colsub = col.column()
-                colsub.active = (curve.dimensions == '3D')
-                colsub.prop(act_spline, "tilt_interpolation", text="Tilt")
+                
+                sub = col.column()
+                sub.active = (curve.dimensions == '3D')
+                sub.prop(act_spline, "tilt_interpolation", text="Tilt")
+                
                 col.prop(act_spline, "radius_interpolation", text="Radius")
 
             layout.prop(act_spline, "use_smooth")

Modified: trunk/blender/release/scripts/startup/bl_ui/space_clip.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_clip.py	2012-01-05 15:45:57 UTC (rev 43169)
+++ trunk/blender/release/scripts/startup/bl_ui/space_clip.py	2012-01-05 16:04:25 UTC (rev 43170)
@@ -317,9 +317,10 @@
         return False
 
     def draw(self, context):
+        layout = self.layout
+        
         sc = context.space_data
         clip = sc.clip
-        layout = self.layout
         tracking_object = clip.tracking.objects.active
         settings = sc.clip.tracking.settings
 
@@ -376,9 +377,9 @@
 
     def draw(self, context):
         layout = self.layout
+        
         sc = context.space_data
-        clip = sc.clip
-        tracking = clip.tracking
+        tracking = sc.clip.tracking
 
         row = layout.row()
         row.template_list(tracking, "objects",



More information about the Bf-blender-cvs mailing list