From: Mikko Rasa Date: Thu, 15 Apr 2021 18:04:34 +0000 (+0300) Subject: Only show the mesh properties panel for meshes X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=110fea79f097b01491962f3d64d2108c2996b1ea Only show the mesh properties panel for meshes --- 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