From aa1b2808e78f553ee6879168a0221dde3909d2b0 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sun, 23 Apr 2017 23:20:36 +0100 Subject: [PATCH] Track node moves separately to node config changes --- editor/js/history.js | 2 +- editor/js/ui/view.js | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/editor/js/history.js b/editor/js/history.js index b2dd473d7..98c2ca918 100644 --- a/editor/js/history.js +++ b/editor/js/history.js @@ -175,7 +175,7 @@ RED.history = (function() { n.n.x = n.ox; n.n.y = n.oy; n.n.dirty = true; - n.n.changed = n.changed; + n.n.moved = n.moved; } // A move could have caused a link splice if (ev.links) { diff --git a/editor/js/ui/view.js b/editor/js/ui/view.js index f457e8ff3..bd1b9a5d0 100644 --- a/editor/js/ui/view.js +++ b/editor/js/ui/view.js @@ -485,6 +485,7 @@ RED.view = (function() { } nn.changed = true; + nn.moved = true; nn.w = node_width; nn.h = Math.max(node_height,(nn.outputs||0) * 15); @@ -953,9 +954,9 @@ RED.view = (function() { if (moving_set.length > 0) { var ns = []; for (var j=0;j 0) { var ns = []; for (var i=0;i