forked from bartvdbraak/blender
41c0236aaa
Contributors list isnt used much in our C code so probably its easier if people just use svn blame for this. Can change if this isnt acceptable but I guessed people didnt care so much since most scripts had no header.
29 lines
820 B
Python
29 lines
820 B
Python
# This software is distributable under the terms of the GNU
|
|
# General Public License (GPL) v2, the text of which can be found at
|
|
# http://www.gnu.org/copyleft/gpl.html. Installing, importing or otherwise
|
|
# using this module constitutes acceptance of the terms of this License.
|
|
|
|
|
|
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)
|