2.5 Buttons:

* Added more material buttons by William. Thanks.
I made some minor adjustments and added Specular Shader Model RNA. 

* Code cleanup and some consistency tweaks of button files.
Notes: Preview render now only shows up when there is an active world, material, texture or lamp.
* Made sure initial panels with ID Datablocks are shown, even when no block is active.
This commit is contained in:
2009-06-13 21:22:21 +00:00
parent 646d4041e2
commit c3c38155ad
17 changed files with 268 additions and 130 deletions

View File

@@ -12,12 +12,16 @@ class DataButtonsPanel(bpy.types.Panel):
class DATA_PT_mesh(DataButtonsPanel):
__idname__ = "DATA_PT_mesh"
__label__ = "Mesh"
def poll(self, context):
return (context.object.type == 'MESH')
def draw(self, context):
layout = self.layout
ob = context.object
mesh = context.mesh
space = context.space_data
layout = self.layout
split = layout.split(percentage=0.65)
@@ -44,4 +48,4 @@ class DATA_PT_mesh(DataButtonsPanel):
layout.itemR(mesh, "texco_mesh")
bpy.types.register(DATA_PT_mesh)
bpy.types.register(DATA_PT_mesh)