diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-10-31 22:57:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-10-31 22:57:59 +0300 |
commit | 944a8d33feb3741eea563b6ac64f60b5f959bf63 (patch) | |
tree | f785900d528d7bbe6fd2b1a0c8008abaf6bdb38e /release/scripts/ui/properties_data_empty.py | |
parent | f9b19d54b5a07c5d654ecb634aefc5690e07e6fd (diff) |
renamed buttons ui files to properties to match UI name change, needed to update some imports too
Diffstat (limited to 'release/scripts/ui/properties_data_empty.py')
-rw-r--r-- | release/scripts/ui/properties_data_empty.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/release/scripts/ui/properties_data_empty.py b/release/scripts/ui/properties_data_empty.py new file mode 100644 index 00000000000..5fe864ee7a2 --- /dev/null +++ b/release/scripts/ui/properties_data_empty.py @@ -0,0 +1,23 @@ + +import bpy + +class DataButtonsPanel(bpy.types.Panel): + bl_space_type = 'PROPERTIES' + bl_region_type = 'WINDOW' + bl_context = "data" + + def poll(self, context): + return (context.object and context.object.type == 'EMPTY') + +class DATA_PT_empty(DataButtonsPanel): + bl_label = "Empty" + + def draw(self, context): + layout = self.layout + + ob = context.object + + layout.itemR(ob, "empty_draw_type", text="Display") + layout.itemR(ob, "empty_draw_size", text="Size") + +bpy.types.register(DATA_PT_empty) |