UI:
[blender-staging.git] / release / ui / buttons_world.py
index 647ef8aa65ed1cd70c5949fb37d9dcd76241e048..d9516cb7900519979ad48e4131d9c6887b3b7705 100644 (file)
@@ -12,6 +12,9 @@ class WorldButtonsPanel(bpy.types.Panel):
 class WORLD_PT_preview(WorldButtonsPanel):
        __label__ = "Preview"
 
+       def poll(self, context):
+               return (context.scene or context.world)
+
        def draw(self, context):
                layout = self.layout
                world = context.world
@@ -176,4 +179,4 @@ bpy.types.register(WORLD_PT_world)
 bpy.types.register(WORLD_PT_ambient_occlusion)
 bpy.types.register(WORLD_PT_mist)
 bpy.types.register(WORLD_PT_stars)
-bpy.types.register(WORLD_PT_color_correction)
\ No newline at end of file
+bpy.types.register(WORLD_PT_color_correction)