Fix T55431: Node Wrangler: Lazy connect / Lazy mix not working
was caused by recent clickdrag event changes
This commit is contained in:
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
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in New Issue