]> git.tdb.fi Git - libs/gl.git/commitdiff
Don't try to draw world properties if there's no world
authorMikko Rasa <tdb@tdb.fi>
Wed, 16 Mar 2022 16:27:23 +0000 (18:27 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 16 Mar 2022 16:27:23 +0000 (18:27 +0200)
blender/io_mspgl/properties.py

index 26e84b2530e59476976daf68800c16e7c80e2659..9b00a76c27f5c238e05ff9f17904ba9aef34bd79 100644 (file)
@@ -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: