diff options
Diffstat (limited to 'release/scripts/ui/buttons_data_empty.py')
-rw-r--r-- | release/scripts/ui/buttons_data_empty.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/release/scripts/ui/buttons_data_empty.py b/release/scripts/ui/buttons_data_empty.py new file mode 100644 index 00000000000..c07f3136fae --- /dev/null +++ b/release/scripts/ui/buttons_data_empty.py @@ -0,0 +1,23 @@ + +import bpy + +class DataButtonsPanel(bpy.types.Panel): + __space_type__ = 'PROPERTIES' + __region_type__ = 'WINDOW' + __context__ = "data" + + def poll(self, context): + return (context.object and context.object.type == 'EMPTY') + +class DATA_PT_empty(DataButtonsPanel): + __label__ = "Empty" + + def draw(self, context): + layout = self.layout + + ob = context.object + + layout.itemR(ob, "empty_draw_type", text="Draw Type") + layout.itemR(ob, "empty_draw_size", text="Draw Size") + +bpy.types.register(DATA_PT_empty) |