fix(fe2): more stable presentation loader (#5683)
This commit is contained in:
committed by
GitHub
parent
ac6d0d892e
commit
1c257b68d3
@@ -177,6 +177,8 @@ function useViewerObjectAutoLoading() {
|
||||
|
||||
const [oldResources] = oldData || [[], false]
|
||||
|
||||
hasLoadedQueuedUpModels.value = false
|
||||
|
||||
// we dont want to zoom to object, if we're loading specific coords because of a thread,
|
||||
// or spotlight mode or a saved view etc.
|
||||
const preventZooming =
|
||||
@@ -210,10 +212,6 @@ function useViewerObjectAutoLoading() {
|
||||
const removableObjectIds = difference(oldObjectIds, newObjectIds)
|
||||
const addableObjectIds = difference(newObjectIds, oldObjectIds)
|
||||
|
||||
if (addableObjectIds.length) {
|
||||
hasLoadedQueuedUpModels.value = true
|
||||
}
|
||||
|
||||
await Promise.all(removableObjectIds.map((i) => loadObject(i, true)))
|
||||
await Promise.all(
|
||||
addableObjectIds.map((i) => loadObject(i, false, { zoomToObject: false }))
|
||||
|
||||
Reference in New Issue
Block a user