From 6d9167920a0cd11f212c57e924325a16bb478cbb Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Wed, 2 Sep 2020 11:46:39 -0400 Subject: [PATCH] Fix issue where inspector may not properly update after dragging a node (close #7386) --- modules/ui/sidebar.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/ui/sidebar.js b/modules/ui/sidebar.js index ff25de883..ba563cd70 100644 --- a/modules/ui/sidebar.js +++ b/modules/ui/sidebar.js @@ -294,15 +294,15 @@ export function uiSidebar(context) { .classed('inspector-hidden', false) .classed('inspector-hover', false); - if (!inspector.entityIDs() || !utilArrayIdentical(inspector.entityIDs(), ids) || inspector.state() !== 'select') { - inspector - .state('select') - .entityIDs(ids) - .newFeature(newFeature); + // reload the UI even if the ids are the same since the entities + // themselves may have changed + inspector + .state('select') + .entityIDs(ids) + .newFeature(newFeature); - inspectorWrap - .call(inspector); - } + inspectorWrap + .call(inspector); } else { inspector