Skip to content

Commit

Permalink
fixed bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegMoshkovich committed Jul 8, 2022
1 parent f863491 commit c29d49d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Containers/CadView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,16 @@ export default function CadView({
setupLookupAndParentLinks(rootElt, elementsById)
setDoubleClickListener()
initSearch(model, rootElt)
// The spatial structure doesn't contain properties. NavTree uses
// the callback for onElementSelect in this class to fill out
// details for the rest of the tree items, so just root needs
// special handling.
// TODO(pablo): not sure if this is expected or a problem with the
// IFC API. Could also try to get the initial root elt load to
// use shared logic with setSelectedElement.
const rootProps = await viewer.getProperties(0, rootElt.expressID)
rootElt.Name = rootProps.Name
rootElt.LongName = rootProps.LongName
setRootElement(rootElt)
setShowNavPanel(true)
}
Expand Down

0 comments on commit c29d49d

Please sign in to comment.