game world buttons had old property name for mist toggle

This commit is contained in:
Campbell Barton 2010-06-11 09:09:57 +00:00
parent 2980d902b9
commit 4aa2ad003b

@ -458,7 +458,7 @@ class WORLD_PT_game_mist(WorldButtonsPanel):
def draw_header(self, context): def draw_header(self, context):
world = context.world world = context.world
self.layout.prop(world.mist, "enabled", text="") self.layout.prop(world.mist, "use_mist", text="")
def draw(self, context): def draw(self, context):
layout = self.layout layout = self.layout
@ -466,7 +466,7 @@ class WORLD_PT_game_mist(WorldButtonsPanel):
world = context.world world = context.world
wide_ui = context.region.width > narrowui wide_ui = context.region.width > narrowui
layout.active = world.mist.enabled layout.active = world.mist.use_mist
split = layout.split() split = layout.split()
col = split.column() col = split.column()