Fix T55431: Node Wrangler: Lazy connect / Lazy mix not working

was caused by recent clickdrag event changes
This commit is contained in:
Philipp Oeser 2018-06-11 11:44:07 +02:00
parent 4cb31f5310
commit 9ae033c49c
Notes: blender-bot 2023-02-14 19:28:48 +01:00
Referenced by issue #55431, Lazy connect not working in Node Wrangler
1 changed files with 2 additions and 2 deletions

View File

@ -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')