Skip to content

Commit

Permalink
🧰: fix update heuristic for submorph changes in scene graph
Browse files Browse the repository at this point in the history
  • Loading branch information
merryman authored and linusha committed Dec 20, 2023
1 parent b3f584f commit 849e7d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lively.ide/studio/interactive-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,9 @@ export class SceneGraphTree extends InteractiveTree {
isNodeOutOfSync (node) {
if (node === this._previewNode) return false; // preview does not represent a real morph
if (this.treeData.root === node) {
return (
this.treeData.root.children.length !==
this.target.submorphs.filter(m => !this.ignoreMorph(m)).length);
return !obj.equals(
this.treeData.root.children.map(m => m.container?.target.id),
this.target.submorphs.filter(m => !this.ignoreMorph(m)).id);
}
if (node.container.nameNeedsUpdate) return true;
const actualSubmorphs = node.container.target.submorphs.filter(m => !this.ignoreMorph(m));
Expand Down

0 comments on commit 849e7d1

Please sign in to comment.