a12883be6a2b0862d7b38913b6153e3652c57c1f
[blender-staging.git] / release / ui / buttons_data_empty.py
1
2 import bpy
3
4 class DataButtonsPanel(bpy.types.Panel):
5         __space_type__ = "BUTTONS_WINDOW"
6         __region_type__ = "WINDOW"
7         __context__ = "data"
8         
9         def poll(self, context):
10                 return (context.object and context.object.type == 'EMPTY')
11         
12 class DATA_PT_empty(DataButtonsPanel):
13         __label__ = "Empty"
14
15         def draw(self, context):
16                 layout = self.layout
17                 ob = context.object
18
19                 layout.itemR(ob, "empty_draw_type")
20                 layout.itemR(ob, "empty_draw_size")
21                 
22 bpy.types.register(DATA_PT_empty)