- removed 2.4x release/scripts
- moved release/io and release/ui into release/scripts/io, ui - updated scons, cmake, make When porting 2.4x scripts back, use a command like this so as not to loose the commit history... svn cp https://svn.blender.org/svnroot/bf-blender/branches/blender2.4/release/scripts/raw_import.py release/scripts/io/import_raw.py
This commit is contained in:
23
release/scripts/ui/buttons_data_empty.py
Normal file
23
release/scripts/ui/buttons_data_empty.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user