Welcome to mirror list, hosted at ThFree Co, Russian Federation.

buttons_data_empty.py « ui « scripts « release - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c07f3136fae274b31b3b4b1fde07af37c7623f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)