[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43683] trunk/blender/release/scripts/ startup/bl_ui/space_node.py: Node UI:

Thomas Dinges blender at dingto.org
Tue Jan 24 21:56:20 CET 2012


Revision: 43683
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43683
Author:   dingto
Date:     2012-01-24 20:56:19 +0000 (Tue, 24 Jan 2012)
Log Message:
-----------
Node UI:
* Make sure to check on snode_id, raised errors if no world datablock was active. 

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_node.py

Modified: trunk/blender/release/scripts/startup/bl_ui/space_node.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_node.py	2012-01-24 20:56:01 UTC (rev 43682)
+++ trunk/blender/release/scripts/startup/bl_ui/space_node.py	2012-01-24 20:56:19 UTC (rev 43683)
@@ -61,7 +61,8 @@
                     
             if snode.shader_type == 'WORLD':
                 layout.template_ID(scene, "world", new="world.new")
-                layout.prop(snode_id, "use_nodes")
+                if snode_id:
+                    layout.prop(snode_id, "use_nodes")
 
         elif snode.tree_type == 'TEXTURE':
             layout.prop(snode, "texture_type", text="", expand=True)



More information about the Bf-blender-cvs mailing list