Skip to content

Commit

Permalink
fix(scene-composer): fix sub-model selection
Browse files Browse the repository at this point in the history
  • Loading branch information
hwandersman committed Jan 30, 2024
1 parent a3cb800 commit 0a11b9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const SceneHierarchyTreeItem: FC<SceneHierarchyTreeItemProps> = ({
const componentRef = component?.ref;
const showSubModel = useMemo(() => {
return component && !!model && !isViewing();
}, [component]);
}, [component, model]);
const isSubModel = !!findComponentByType(node, KnownComponentType.SubModelRef);
const isDynamic = isDynamicNode(node);

Expand Down

0 comments on commit 0a11b9a

Please sign in to comment.