mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-24 22:16:17 +01:00
- [Graph Panel] Fix error when hotkey node creation got canceled.
This commit is contained in:
parent
0d3686733b
commit
a44e2c96e0
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue