Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / release / ui / buttons_data_empty.py
index c07f313..02fea15 100644 (file)
@@ -2,12 +2,12 @@
 import bpy
 
 class DataButtonsPanel(bpy.types.Panel):
-       __space_type__ = 'PROPERTIES'
-       __region_type__ = 'WINDOW'
+       __space_type__ = "PROPERTIES"
+       __region_type__ = "WINDOW"
        __context__ = "data"
        
        def poll(self, context):
-               return (context.object and context.object.type == 'EMPTY')
+               return (context.object.type == 'EMPTY')
        
 class DATA_PT_empty(DataButtonsPanel):
        __label__ = "Empty"
@@ -17,7 +17,7 @@ class DATA_PT_empty(DataButtonsPanel):
                
                ob = context.object
 
-               layout.itemR(ob, "empty_draw_type", text="Draw Type")
-               layout.itemR(ob, "empty_draw_size", text="Draw Size")
+               layout.itemR(ob, "empty_draw_type")
+               layout.itemR(ob, "empty_draw_size")
                
-bpy.types.register(DATA_PT_empty)
+bpy.types.register(DATA_PT_empty)
\ No newline at end of file