[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31784] trunk/blender/release/scripts/ui/ properties_world.py: bugfix [#23697] New Empty Scene lacks World Settings
Campbell Barton
ideasman42 at gmail.com
Mon Sep 6 12:25:39 CEST 2010
Revision: 31784
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31784
Author: campbellbarton
Date: 2010-09-06 12:25:38 +0200 (Mon, 06 Sep 2010)
Log Message:
-----------
bugfix [#23697] New Empty Scene lacks World Settings
Modified Paths:
--------------
trunk/blender/release/scripts/ui/properties_world.py
Modified: trunk/blender/release/scripts/ui/properties_world.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_world.py 2010-09-06 10:15:41 UTC (rev 31783)
+++ trunk/blender/release/scripts/ui/properties_world.py 2010-09-06 10:25:38 UTC (rev 31784)
@@ -51,7 +51,7 @@
world = context.world
space = context.space_data
- texture_count = len(world.texture_slots.keys())
+ texture_count = world and len(world.texture_slots.keys())
split = layout.split(percentage=0.65)
if scene:
@@ -59,7 +59,7 @@
elif world:
split.template_ID(space, "pin_id")
- if texture_count != 0:
+ if texture_count:
split.label(text=str(texture_count), icon='TEXTURE')
class WORLD_PT_preview(WorldButtonsPanel, bpy.types.Panel):
More information about the Bf-blender-cvs
mailing list