]> git.tdb.fi Git - libs/gl.git/commitdiff
Only show the mesh properties panel for meshes
authorMikko Rasa <tdb@tdb.fi>
Thu, 15 Apr 2021 18:04:34 +0000 (21:04 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 15 Apr 2021 21:31:36 +0000 (00:31 +0300)
blender/io_mspgl/properties.py

index af3194039793bca343c9ce5dd03c8157cdf0b3d8..c1c89804f3791a8268882fd8f997ec1338bc2f10 100644 (file)
@@ -53,6 +53,10 @@ class MspGLObjectProperties(bpy.types.Panel):
        bl_region_type = "WINDOW"
        bl_context = "object"
 
+       @classmethod
+       def poll(cls, context):
+               return context.active_object.type=="MESH"
+
        def draw(self, context):
                obj = context.active_object