X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fproperties.py;h=f52b97621a2bc4bba1888e0fa0ce1a28f4d5615c;hb=1c189b2a4a6c91fe4baaa2bd6760f5fc4d7558d2;hp=e3806584fef8d7ddc276274e32d8b5c424aae7ed;hpb=46752f789ea3d23928e96ce451ea96c78c694b93;p=libs%2Fgl.git diff --git a/blender/io_mspgl/properties.py b/blender/io_mspgl/properties.py index e3806584..f52b9762 100644 --- a/blender/io_mspgl/properties.py +++ b/blender/io_mspgl/properties.py @@ -1,5 +1,17 @@ import bpy +class MspGLSceneProperties(bpy.types.Panel): + bl_idname = "SCENE_PT_mspgl_properties" + bl_label = "MspGL properties" + bl_space_type = "PROPERTIES" + bl_region_type = "WINDOW" + bl_context = "scene" + + def draw(self, context): + scene = context.scene + + self.layout.prop(scene, "scene_type") + class MspGLMeshProperties(bpy.types.Panel): bl_idname = "MESH_PT_mspgl_properties" bl_label = "MspGL properties" @@ -30,8 +42,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" @@ -73,7 +85,23 @@ class MspGLMaterialProperties(bpy.types.Panel): if mat.array_atlas: self.layout.prop(mat, "array_layer") if mat.render_mode!='EXTERNAL': - self.layout.prop(mat, "material_map") + 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