]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/properties.py
Remove support for material atlases from the Blender exporter
[libs/gl.git] / blender / io_mspgl / properties.py
index 26e84b2530e59476976daf68800c16e7c80e2659..a5a24274dc648b0bc28a951a23361627098d1c93 100644 (file)
@@ -21,6 +21,8 @@ class MspGLWorldProperties(bpy.types.Panel):
 
        def draw(self, context):
                world = context.scene.world
+               if not world:
+                       return
 
                self.layout.prop(world, "use_sky")
                if world.use_sky:
@@ -117,8 +119,6 @@ class MspGLMaterialProperties(bpy.types.Panel):
                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")
@@ -270,7 +270,6 @@ def register_properties():
        bpy.types.Material.image_based_lighting = bpy.props.BoolProperty(name="Image based lighting", description="Use an environment map for ambient lighting", default=False)
        bpy.types.Material.array_atlas = bpy.props.BoolProperty(name="Texture array atlas", description="The material is stored in a texture array")
        bpy.types.Material.array_layer = bpy.props.IntProperty("Texture array layer", description="Layer of the texture array atlas to use")
-       bpy.types.Material.material_atlas = bpy.props.BoolProperty(name="Material atlas", description="Make this material part of a material atlas")
        bpy.types.Material.uniforms = bpy.props.CollectionProperty(type=MspGLUniform, name="Uniforms", description="Uniform variables to add to the technique")
        bpy.types.Material.active_uniform_index = bpy.props.IntProperty("Active uniform index")