Merge with -r 22620:23107.
[blender.git] / release / ui / buttons_data_empty.py
1
2 import bpy
3
4 class DataButtonsPanel(bpy.types.Panel):
5         __space_type__ = 'PROPERTIES'
6         __region_type__ = 'WINDOW'
7         __context__ = "data"
8         
9         def poll(self, context):
10                 return (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                 
18                 ob = context.object
19
20                 layout.itemR(ob, "empty_draw_type", text="Draw Type")
21                 layout.itemR(ob, "empty_draw_size", text="Draw Size")
22                 
23 bpy.types.register(DATA_PT_empty)