From 110fea79f097b01491962f3d64d2108c2996b1ea Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 15 Apr 2021 21:04:34 +0300 Subject: [PATCH] Only show the mesh properties panel for meshes --- blender/io_mspgl/properties.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blender/io_mspgl/properties.py b/blender/io_mspgl/properties.py index af319403..c1c89804 100644 --- a/blender/io_mspgl/properties.py +++ b/blender/io_mspgl/properties.py @@ -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 -- 2.45.2