* Code cleanup
authorThomas Dinges <blender@dingto.org>
Thu, 28 Jul 2011 18:19:15 +0000 (18:19 +0000)
committerThomas Dinges <blender@dingto.org>
Thu, 28 Jul 2011 18:19:15 +0000 (18:19 +0000)
A row with alignment for 1 property = useless: ;-)

release/scripts/startup/bl_ui/properties_data_empty.py

index 5a0d327..42b0af7 100644 (file)
@@ -41,11 +41,9 @@ class DATA_PT_empty(DataButtonsPanel, bpy.types.Panel):
         layout.prop(ob, "empty_draw_type", text="Display")
 
         if ob.empty_draw_type == 'IMAGE':
-            # layout.template_image(ob, "data", None)
             layout.template_ID(ob, "data", open="image.open", unlink="image.unlink")
 
-            row = layout.row(align=True)
-            row.prop(ob, "color", text="Transparency", index=3, slider=True)
+            layout.prop(ob, "color", text="Transparency", index=3, slider=True)
             row = layout.row(align=True)
             row.prop(ob, "empty_image_offset", text="Offset X", index=0)
             row.prop(ob, "empty_image_offset", text="Offset Y", index=1)