* Minor code cleanup.
authorThomas Dinges <blender@dingto.org>
Thu, 12 Nov 2009 14:37:13 +0000 (14:37 +0000)
committerThomas Dinges <blender@dingto.org>
Thu, 12 Nov 2009 14:37:13 +0000 (14:37 +0000)
release/scripts/ui/properties_material.py
release/scripts/ui/properties_particle.py
release/scripts/ui/properties_render.py

index 8cdc53a50946b0ce1631b424c6d653cd64f0ca1f..ac2db151424cd249df2bd3fe5be32a62ed428240 100644 (file)
@@ -137,8 +137,7 @@ class MATERIAL_PT_shading(MaterialButtonsPanel):
             sub.active = not mat.shadeless
             sub.itemR(mat, "emit")
             sub.itemR(mat, "ambient")
-            sub = col.column()
-            sub.itemR(mat, "translucency")
+            col.itemR(mat, "translucency")
 
             if col2:
                 col = split.column()
index e9cc541c807730ca593968e8e26d94b215ce5378..6b2dfceb6c34206e24dc1deec59e470cbb0208ba 100644 (file)
@@ -477,7 +477,7 @@ class PARTICLE_PT_physics(ParticleButtonsPanel):
                 else:
                     sub = row.row()
                     #doesn't work yet
-                    #subrow.red_alert = key.valid
+                    #sub.red_alert = key.valid
                     sub.itemR(key, "object", text="")
                     sub.itemR(key, "system", text="System")
 
@@ -508,12 +508,12 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel):
         #row = layout.row()
         #row.template_list(boids, "states", boids, "active_boid_state_index", compact="True")
         #col = row.row()
-        #subrow = col.row(align=True)
-        #subrow.itemO("boid.state_add", icon='ICON_ZOOMIN', text="")
-        #subrow.itemO("boid.state_del", icon='ICON_ZOOMOUT', text="")
-        #subrow = row.row(align=True)
-        #subrow.itemO("boid.state_move_up", icon='VICON_MOVE_UP', text="")
-        #subrow.itemO("boid.state_move_down", icon='VICON_MOVE_DOWN', text="")
+        #sub = col.row(align=True)
+        #sub.itemO("boid.state_add", icon='ICON_ZOOMIN', text="")
+        #sub.itemO("boid.state_del", icon='ICON_ZOOMOUT', text="")
+        #sub = row.row(align=True)
+        #sub.itemO("boid.state_move_up", icon='VICON_MOVE_UP', text="")
+        #sub.itemO("boid.state_move_down", icon='VICON_MOVE_DOWN', text="")
 
         state = boids.active_boid_state
 
@@ -535,7 +535,7 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel):
         subsub.item_menu_enumO("boid.rule_add", "type", icon='ICON_ZOOMIN', text="")
         subsub.itemO("boid.rule_del", icon='ICON_ZOOMOUT', text="")
         sub = col.row()
-        subcol = sub.column(align=True)
+        subsub = sub.column(align=True)
         subsub.itemO("boid.rule_move_up", icon='VICON_MOVE_UP', text="")
         subsub.itemO("boid.rule_move_down", icon='VICON_MOVE_DOWN', text="")
 
@@ -570,9 +570,9 @@ class PARTICLE_PT_boidbrain(ParticleButtonsPanel):
                 row.itemR(rule, "distance")
                 row = layout.row()
                 row.itemR(rule, "line")
-                subrow = row.row()
-                subrow.active = rule.line
-                subrow.itemR(rule, "queue_size")
+                sub = row.row()
+                sub.active = rule.line
+                sub.itemR(rule, "queue_size")
             elif rule.type == 'AVERAGE_SPEED':
                 row.itemR(rule, "speed", slider=True)
                 row.itemR(rule, "wander", slider=True)
index 51b381478d787610f72175e209bb22984f57e9a1..b4d69b595bb44e68729043bf253d070a5e68cdeb 100644 (file)
@@ -450,9 +450,9 @@ class RENDER_PT_dimensions(RenderButtonsPanel):
 
         row = col.row()
         row.itemR(rd, "use_border", text="Border")
-        rowsub = row.row()
-        rowsub.active = rd.use_border
-        rowsub.itemR(rd, "crop_to_border", text="Crop")
+        sub = row.row()
+        sub.active = rd.use_border
+        sub.itemR(rd, "crop_to_border", text="Crop")
 
         if col2:
             col = split.column()