]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove unfinished light properties panel from the blender exporter
authorMikko Rasa <tdb@tdb.fi>
Fri, 8 Oct 2021 06:53:56 +0000 (09:53 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 8 Oct 2021 07:13:42 +0000 (10:13 +0300)
This was accidentally added in 7ae4af7 even though the things it's going
to be used with are not ready yet.  I will add it back later.

blender/io_mspgl/properties.py

index 744630f70ca8dd505073beb2ed86e735ba808cf9..128b3c53b0010998290c7fea82a7b3aa12f6cdfe 100644 (file)
@@ -134,23 +134,6 @@ class MspGLTextureNodeProperties(bpy.types.Panel):
                self.layout.prop(node, "use_mipmap")
                self.layout.prop(node, "max_anisotropy")
 
-class MspGLLightProperties(bpy.types.Panel):
-       bl_idname = "LIGHT_PT_mspgl_properties"
-       bl_label = "MspGL properties"
-       bl_space_type = "PROPERTIES"
-       bl_region_type = "WINDOW"
-       bl_context = "data"
-
-       @classmethod
-       def poll(cls, context):
-               return context.active_object.type=="LIGHT"
-
-       def draw(self, context):
-               light = context.active_object.data
-
-               if light.use_shadow:
-                       self.layout.prop(light, "shadow_map_size")
-
 class MspGLRenderProperties(bpy.types.Panel):
        bl_idname = "WORLD_PT_mspgl_properties"
        bl_label = "MspGL properties"
@@ -181,7 +164,7 @@ class MspGLUniformList(bpy.types.UIList):
                        layout.label(text="({})".format(", ".join("{:.3f}".format(v) for v in uniform.values[:uniform.size])))
 
 classes = [MspGLSceneProperties, MspGLMeshProperties, MspGLObjectProperties, MspGLMaterialProperties,
-       MspGLTextureNodeProperties, MspGLLightProperties, MspGLRenderProperties, MspGLUniform, MspGLUniformList]
+       MspGLTextureNodeProperties, MspGLRenderProperties, MspGLUniform, MspGLUniformList]
 
 def register_properties():
        for c in classes: