Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-20 08:41:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-20 08:41:40 +0300
commitb2b53ee9dbdb7293de6b5e13139bad735178aeff (patch)
tree195517da5f1f234b8f3993adb073f80800cbf8a8 /release/scripts/startup/bl_ui/space_node.py
parentc4c2c27f971631eb130b1964c33f83e748411c5a (diff)
Correct error in last commit
Diffstat (limited to 'release/scripts/startup/bl_ui/space_node.py')
-rw-r--r--release/scripts/startup/bl_ui/space_node.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py
index 9754cf64a86..e5e6b6c3281 100644
--- a/release/scripts/startup/bl_ui/space_node.py
+++ b/release/scripts/startup/bl_ui/space_node.py
@@ -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")