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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek Skorupa <bartekskorupa@bartekskorupa.com>2013-05-17 16:56:13 +0400
committerBartek Skorupa <bartekskorupa@bartekskorupa.com>2013-05-17 16:56:13 +0400
commita237801d560bd31ec9555010fc54c2e7a83a3a1b (patch)
tree94346c1fdfa56cb003c2a38fb58b8148f4eb1e4c /node_efficiency_tools.py
parent46bb10a4271a327eb4643b427450891b0fcae7fb (diff)
Added keyboard shortcut for 'Copy Label from Active to Selected' - (Shift-V)
Diffstat (limited to 'node_efficiency_tools.py')
-rw-r--r--node_efficiency_tools.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/node_efficiency_tools.py b/node_efficiency_tools.py
index fa806879..d6d9ed89 100644
--- a/node_efficiency_tools.py
+++ b/node_efficiency_tools.py
@@ -19,7 +19,7 @@
bl_info = {
'name': "Nodes Efficiency Tools",
'author': "Bartek Skorupa",
- 'version': (2, 29),
+ 'version': (2, 30),
'blender': (2, 6, 7),
'location': "Node Editor Properties Panel (Ctrl-SPACE)",
'description': "Nodes Efficiency Tools",
@@ -1120,7 +1120,14 @@ class LinkToOutputNode(Operator, NodeToolBase):
@classmethod
def poll(cls, context):
- return context.active_node
+ space = context.space_data
+ valid = False
+ if (space.type == 'NODE_EDITOR' and
+ space.node_tree is not None and
+ context.active_node is not None
+ ):
+ valid = True
+ return valid
def execute(self, context):
nodes, links = get_nodes_links(context)
@@ -1585,7 +1592,10 @@ kmi_defs = (
(SelectParentChildren.bl_idname, 'RIGHT_BRACKET', False, False, False, (('option', 'CHILD'),)),
# Select Parent
(SelectParentChildren.bl_idname, 'LEFT_BRACKET', False, False, False, (('option', 'PARENT'),)),
+ # Add Texture Setup
(NodesAddTextureSetup.bl_idname, 'T', True, False, False, None),
+ # Copy Label from active to selected
+ (NodesCopyLabel.bl_idname, 'V', False, True, False, (('option', 'FROM_ACTIVE'),)),
# MENUS
('wm.call_menu', 'SPACE', True, False, False, (('name', EfficiencyToolsMenu.bl_idname),)),
('wm.call_menu', 'SLASH', False, False, False, (('name', AddReroutesMenu.bl_idname),)),