[Bf-extensions-cvs] [9ae033c4] master: Fix T55431: Node Wrangler: Lazy connect / Lazy mix not working
Philipp Oeser
noreply at git.blender.org
Mon Jun 11 11:46:43 CEST 2018
Commit: 9ae033c49c1b16718eac6306bdc271a5e6e6bf38
Author: Philipp Oeser
Date: Mon Jun 11 11:44:07 2018 +0200
Branches: master
https://developer.blender.org/rBA9ae033c49c1b16718eac6306bdc271a5e6e6bf38
Fix T55431: Node Wrangler: Lazy connect / Lazy mix not working
was caused by recent clickdrag event changes
===================================================================
M node_wrangler.py
===================================================================
diff --git a/node_wrangler.py b/node_wrangler.py
index 24e096c8..391d4e69 100644
--- a/node_wrangler.py
+++ b/node_wrangler.py
@@ -1162,7 +1162,7 @@ class NWLazyMix(Operator, NWBase):
if event.type == 'MOUSEMOVE':
self.mouse_path.append((event.mouse_region_x, event.mouse_region_y))
- elif event.type == 'RIGHTMOUSE':
+ elif event.type == 'RIGHTMOUSE' and event.value == 'RELEASE':
end_pos = [event.mouse_region_x, event.mouse_region_y]
bpy.types.SpaceNodeEditor.draw_handler_remove(self._handle, 'WINDOW')
@@ -1239,7 +1239,7 @@ class NWLazyConnect(Operator, NWBase):
if event.type == 'MOUSEMOVE':
self.mouse_path.append((event.mouse_region_x, event.mouse_region_y))
- elif event.type == 'RIGHTMOUSE':
+ elif event.type == 'RIGHTMOUSE' and event.value == 'RELEASE':
end_pos = [event.mouse_region_x, event.mouse_region_y]
bpy.types.SpaceNodeEditor.draw_handler_remove(self._handle, 'WINDOW')
More information about the Bf-extensions-cvs
mailing list