- [Graph Panel] Fix error when hotkey node creation got canceled.

This commit is contained in:
Tanasart 2024-07-11 14:06:06 +07:00
parent 0d3686733b
commit a44e2c96e0

View file

@ -2217,6 +2217,8 @@ function Panel_Graph(project = PROJECT) : PanelContent() constructor {
if(is_string(_node)) node = nodeBuild(_node, _mx, _my); if(is_string(_node)) node = nodeBuild(_node, _mx, _my);
else node = _node(_mx, _my, getCurrentContext(), _param); else node = _node(_mx, _my, getCurrentContext(), _param);
if(node == noone) return;
mouse_create_y = ceil((mouse_create_y + node.h + _gs / 2) / _gs) * _gs; mouse_create_y = ceil((mouse_create_y + node.h + _gs / 2) / _gs) * _gs;
if(value_dragging == noone) return; if(value_dragging == noone) return;