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
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)