Small fix for zoom and startup reset

This commit is contained in:
Alex
2022-10-28 14:54:36 +03:00
parent b3ad159cd6
commit 22e494d4d2
@@ -384,7 +384,8 @@ export default class SpeckleRenderer {
this.updateDirectLights()
this.updateHelpers()
this.resetPipeline(true)
// this.resetPipeline(true)
this._needsRender = true
}
public removeRenderTree(subtreeId: string) {
@@ -682,9 +683,11 @@ export default class SpeckleRenderer {
public zoom(objectIds?: string[], fit?: number, transition?: boolean) {
if (!objectIds) {
this.zoomExtents(fit, transition)
this.pipeline.onStationaryEnd()
return
}
this.zoomToBox(this.boxFromObjects(objectIds), fit, transition)
this.pipeline.onStationaryEnd()
}
/** Taken from InteractionsHandler. Will revisit in the future */