From 85fa9efac0d7ba49c0ce9e0adec7ac1145a6c452 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 16 Mar 2022 18:27:23 +0200 Subject: [PATCH] Don't try to draw world properties if there's no world --- blender/io_mspgl/properties.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.45.2