4 class DataButtonsPanel(bpy.types.Panel):
5 __space_type__ = "BUTTONS_WINDOW"
6 __region_type__ = "WINDOW"
9 def poll(self, context):
10 return (context.object.type == 'EMPTY')
12 class DATA_PT_empty(DataButtonsPanel):
13 __idname__ = "DATA_PT_empty"
16 def draw(self, context):
20 layout.itemR(ob, "empty_draw_type")
21 layout.itemR(ob, "empty_draw_size")
23 bpy.types.register(DATA_PT_empty)