mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-30 14:55:30 +01:00
[Add node] Fix adding node with custom function create two nodes.
This commit is contained in:
parent
9340d6b6d7
commit
accfa30037
2 changed files with 4 additions and 1 deletions
Binary file not shown.
|
@ -163,7 +163,10 @@ function NodeObject(_name, _node, _tooltip = "") constructor {
|
|||
_param.iname = nodekey;
|
||||
}
|
||||
|
||||
var _node = createFn == noone? new node(_x, _y, _group, _param) : createFn(_x, _y, _group, _param);
|
||||
var _node;
|
||||
if(createFn == noone) _node = new node(_x, _y, _group, _param);
|
||||
else _node = createFn(_x, _y, _group, _param);
|
||||
|
||||
_node.name = name;
|
||||
_node.postBuild();
|
||||
|
||||
|
|
Loading…
Reference in a new issue