Correct error in last commit
authorCampbell Barton <ideasman42@gmail.com>
Thu, 20 Dec 2018 05:41:40 +0000 (16:41 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 20 Dec 2018 05:41:40 +0000 (16:41 +1100)
release/scripts/startup/bl_ui/space_node.py

index 9754cf6..e5e6b6c 100644 (file)
@@ -327,10 +327,11 @@ class NODE_MT_specials(Menu):
     def draw(self, context):
         layout = self.layout
 
+        selected_nodes_len = len(context.selected_nodes)
+
         # If nothing is selected
         # (disabled for now until it can be made more useful).
         '''
-        selected_nodes_len = len(context.selected_nodes)
         if selected_nodes_len == 0:
             layout.operator_context = 'INVOKE_DEFAULT'
             layout.menu("NODE_MT_add")