X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fproperties.py;h=1272c60e07559f5733f9b41c4b798a0f19be9d93;hb=68cb1241d18f2e1d4d1bb3322edc694e2ea267df;hp=1a158598a37619c0207ba51fa6f6098ec982ba98;hpb=211d5ec0e55778ab023b1bc6bb54e2c9afa7df0c;p=libs%2Fgl.git diff --git a/blender/io_mspgl/properties.py b/blender/io_mspgl/properties.py index 1a158598..1272c60e 100644 --- a/blender/io_mspgl/properties.py +++ b/blender/io_mspgl/properties.py @@ -20,7 +20,7 @@ class MspGLMeshProperties(bpy.types.Panel): self.layout.separator() col = self.layout.column() - col.label("Data selection") + col.label(text="Data selection") col.prop(mesh, "use_lines") col.prop(mesh, "vertex_groups") col.prop(mesh, "max_groups_per_vertex") @@ -28,10 +28,10 @@ class MspGLMeshProperties(bpy.types.Panel): self.layout.separator() col = self.layout.column() - col.label("Texturing") + col.label(text="Texturing") col.prop(mesh, "use_uv") - col.prop(mesh, "tbn_vecs") - col.prop(mesh, "tbn_uvtex") + col.prop(mesh, "tangent_vecs") + col.prop(mesh, "tangent_uvtex") class MspGLObjectProperties(bpy.types.Panel): bl_idname = "OBJECT_PT_mspgl_properties" @@ -43,11 +43,6 @@ class MspGLObjectProperties(bpy.types.Panel): def draw(self, context): obj = context.active_object - self.layout.prop(obj, "technique") - self.layout.prop(obj, "inherit_tech") - if obj.inherit_tech: - self.layout.prop(obj, "override_material") - self.layout.prop(obj, "material_tex") self.layout.prop(obj, "compound") self.layout.prop(obj, "lod_for_parent") if obj.lod_for_parent: @@ -69,12 +64,77 @@ class MspGLMaterialProperties(bpy.types.Panel): if not mat: return - self.layout.prop(mat, "srgb_colors") + self.layout.prop(mat, "render_mode") + if mat.render_mode=='CUSTOM': + self.layout.prop(mat, "shader") + elif mat.render_mode=='EXTERNAL': + self.layout.prop(mat, "technique") self.layout.prop(mat, "array_atlas") if mat.array_atlas: self.layout.prop(mat, "array_layer") + if mat.render_mode!='EXTERNAL': + self.layout.prop(mat, "material_atlas") + if mat.render_mode=='CUSTOM': + self.layout.separator() + self.layout.label(text="Uniform values") + self.layout.template_list("MATERIAL_UL_mspgl_uniforms", "", mat, "uniforms", mat, "active_uniform_index") + row = self.layout.row() + row.operator("material.add_uniform") + row.operator("material.remove_uniform") + + if mat.active_uniform_index