4 class DataButtonsPanel(bpy.types.Panel):
5 __space_type__ = "BUTTONS_WINDOW"
6 __region_type__ = "WINDOW"
9 def poll(self, context):
10 ob = context.active_object
11 return (ob and ob.type == 'EMPTY')
13 class DATA_PT_empty(DataButtonsPanel):
14 __idname__ = "DATA_PT_empty"
17 def draw(self, context):
18 ob = context.active_object
21 layout.itemR(ob, "empty_draw_type")
22 layout.itemR(ob, "empty_draw_size")
24 bpy.types.register(DATA_PT_empty)