From 4bb24b8f9e5b5d851a30d93de1abc51a4d971de9 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Mon, 9 Nov 2020 09:49:01 -0500 Subject: [PATCH] Fix issue with dragging node in between editing its tags (close #7606) --- modules/ui/entity_editor.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/ui/entity_editor.js b/modules/ui/entity_editor.js index 172a5a995..5d4a20697 100644 --- a/modules/ui/entity_editor.js +++ b/modules/ui/entity_editor.js @@ -270,11 +270,15 @@ export function uiEntityEditor(context) { entityEditor.entityIDs = function(val) { if (!arguments.length) return _entityIDs; + + // always reload these even if the entityIDs are unchanged, since we + // could be reselecting after something like dragging a node + _base = context.graph(); + _coalesceChanges = false; + if (val && _entityIDs && utilArrayIdentical(_entityIDs, val)) return entityEditor; // exit early if no change _entityIDs = val; - _base = context.graph(); - _coalesceChanges = false; loadActivePresets(true);