[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43713] branches/tile/release/scripts/ startup/bl_ui/space_node.py: TileBranch

Jeroen Bakker j.bakker at atmind.nl
Thu Jan 26 09:45:02 CET 2012


Revision: 43713
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43713
Author:   jbakker
Date:     2012-01-26 08:45:01 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
TileBranch
 * removed a python null-value when doing the next steps:
1. start blender
2. go to the compositor view
3. press 'N'

issue was that no node_tree is available

Modified Paths:
--------------
    branches/tile/release/scripts/startup/bl_ui/space_node.py

Modified: branches/tile/release/scripts/startup/bl_ui/space_node.py
===================================================================
--- branches/tile/release/scripts/startup/bl_ui/space_node.py	2012-01-26 08:37:43 UTC (rev 43712)
+++ branches/tile/release/scripts/startup/bl_ui/space_node.py	2012-01-26 08:45:01 UTC (rev 43713)
@@ -202,7 +202,7 @@
     @classmethod
     def poll(cls, context):
         snode = context.space_data
-        return snode.tree_type == 'COMPOSITING'
+        return snode.tree_type == 'COMPOSITING' and snode.node_tree is not None
 
     def draw(self, context):
         layout = self.layout



More information about the Bf-blender-cvs mailing list