From: Mikko Rasa Date: Wed, 16 Mar 2022 16:27:23 +0000 (+0200) Subject: Don't try to draw world properties if there's no world X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=85fa9efac0d7ba49c0ce9e0adec7ac1145a6c452;p=libs%2Fgl.git Don't try to draw world properties if there's no world --- diff --git a/blender/io_mspgl/properties.py b/blender/io_mspgl/properties.py index 26e84b25..9b00a76c 100644 --- a/blender/io_mspgl/properties.py +++ b/blender/io_mspgl/properties.py @@ -21,6 +21,8 @@ class MspGLWorldProperties(bpy.types.Panel): def draw(self, context): world = context.scene.world + if not world: + return self.layout.prop(world, "use_sky") if world.use_sky: