X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fproperties.py;h=1272c60e07559f5733f9b41c4b798a0f19be9d93;hb=68cb1241d18f2e1d4d1bb3322edc694e2ea267df;hp=df18d444be9819e7d89c3c5446cfc00401fa1a18;hpb=5bf3c7175c359ad8509702a4e0790609b39e6aec;p=libs%2Fgl.git diff --git a/blender/io_mspgl/properties.py b/blender/io_mspgl/properties.py index df18d444..1272c60e 100644 --- a/blender/io_mspgl/properties.py +++ b/blender/io_mspgl/properties.py @@ -30,8 +30,8 @@ class MspGLMeshProperties(bpy.types.Panel): col = self.layout.column() 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" @@ -74,6 +74,22 @@ class MspGLMaterialProperties(bpy.types.Panel): 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