X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fproperties.py;h=6d847012fc96f41bff69cbfa1112c89ff4021752;hb=08942dd73918a51baefbe7344b62afc0cad42e55;hp=f52b97621a2bc4bba1888e0fa0ce1a28f4d5615c;hpb=1c189b2a4a6c91fe4baaa2bd6760f5fc4d7558d2;p=libs%2Fgl.git diff --git a/blender/io_mspgl/properties.py b/blender/io_mspgl/properties.py index f52b9762..6d847012 100644 --- a/blender/io_mspgl/properties.py +++ b/blender/io_mspgl/properties.py @@ -11,6 +11,7 @@ class MspGLSceneProperties(bpy.types.Panel): scene = context.scene self.layout.prop(scene, "scene_type") + self.layout.prop(scene, "export_disposition") class MspGLMeshProperties(bpy.types.Panel): bl_idname = "MESH_PT_mspgl_properties" @@ -28,6 +29,7 @@ class MspGLMeshProperties(bpy.types.Panel): self.layout.prop(mesh, "winding_test") self.layout.prop(mesh, "smoothing") + self.layout.prop(mesh, "use_strips") self.layout.separator() @@ -52,6 +54,10 @@ class MspGLObjectProperties(bpy.types.Panel): bl_region_type = "WINDOW" bl_context = "object" + @classmethod + def poll(cls, context): + return context.active_object.type=="MESH" + def draw(self, context): obj = context.active_object @@ -78,9 +84,24 @@ class MspGLMaterialProperties(bpy.types.Panel): self.layout.prop(mat, "render_mode") if mat.render_mode=='CUSTOM': - self.layout.prop(mat, "shader") + self.layout.label(text="Render methods") + self.layout.template_list("MATERIAL_UL_mspgl_render_methods", "", mat, "render_methods", mat, "active_render_method_index") + row = self.layout.row() + row.operator("material.add_render_method") + row.operator("material.remove_render_method") + + if mat.active_render_method_index