X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fproperties.py;fp=blender%2Fio_mspgl%2Fproperties.py;h=c1c89804f3791a8268882fd8f997ec1338bc2f10;hb=110fea79f097b01491962f3d64d2108c2996b1ea;hp=af3194039793bca343c9ce5dd03c8157cdf0b3d8;hpb=859f8b99ee65bb52c7a44194420a156ef5be3413;p=libs%2Fgl.git 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