mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-25 08:49:36 +00:00
Fix undefined var 'cloned' (#33)
This commit is contained in:
@@ -5920,7 +5920,8 @@ LGraphNode.prototype.executeAction = function(action)
|
|||||||
// clone node ALT dragging
|
// clone node ALT dragging
|
||||||
if (LiteGraph.alt_drag_do_clone_nodes && e.altKey && node && this.allow_interaction && !skip_action && !this.read_only)
|
if (LiteGraph.alt_drag_do_clone_nodes && e.altKey && node && this.allow_interaction && !skip_action && !this.read_only)
|
||||||
{
|
{
|
||||||
if (cloned = node.clone()){
|
const cloned = node.clone()
|
||||||
|
if (cloned) {
|
||||||
cloned.pos[0] += 5;
|
cloned.pos[0] += 5;
|
||||||
cloned.pos[1] += 5;
|
cloned.pos[1] += 5;
|
||||||
this.graph.add(cloned,false,{doCalcSize: false});
|
this.graph.add(cloned,false,{doCalcSize: false});
|
||||||
|
|||||||
Reference in New Issue
Block a user