Merge with 2.5 -r 21756:22173.
[blender.git] / release / ui / buttons_data_empty.py
index 827fe02e411a5ec21a04792888625b5665a36f55..09868eeb542802f1834b93c28e84a85a864b73da 100644 (file)
@@ -7,7 +7,7 @@ class DataButtonsPanel(bpy.types.Panel):
        __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"
@@ -20,4 +20,4 @@ class DATA_PT_empty(DataButtonsPanel):
                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