@preference-sl/pref-viewer 2.12.0-beta.2 → 2.12.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -689,7 +689,7 @@ export default class BabylonJSController {
|
|
|
689
689
|
const modelContainer = this.#containers.model;
|
|
690
690
|
const environmentContainer = this.#containers.environment;
|
|
691
691
|
|
|
692
|
-
if (!cameraState.isPending && !modelContainer.state.
|
|
692
|
+
if (!cameraState.isPending && !modelContainer.state.isSuccess && !environmentContainer.state.isSuccess) {
|
|
693
693
|
return false;
|
|
694
694
|
}
|
|
695
695
|
|
|
@@ -733,6 +733,7 @@ export default class BabylonJSController {
|
|
|
733
733
|
cameraState.setSuccess(true);
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
|
+
this.#scene.activeCamera?.detachControl();
|
|
736
737
|
if (!cameraState.locked && cameraState.value !== null) {
|
|
737
738
|
camera.attachControl(this.#canvas, true);
|
|
738
739
|
}
|
|
@@ -915,8 +916,9 @@ export default class BabylonJSController {
|
|
|
915
916
|
if (!this.#gltfResolver) {
|
|
916
917
|
this.#gltfResolver = new GLTFResolver();
|
|
917
918
|
}
|
|
918
|
-
|
|
919
|
-
|
|
919
|
+
//let sourceData = await this.#gltfResolver.getSource(container.state.update.storage, container.state.size, container.state.timeStamp);
|
|
920
|
+
// TEMPORARY: We never pass 'size' or 'timeStamp' to always force a reload and avoid issues with the active camera in reloading assetContainers
|
|
921
|
+
let sourceData = await this.#gltfResolver.getSource(container.state.update.storage, 0, null);
|
|
920
922
|
if (!sourceData) {
|
|
921
923
|
return [container, false];
|
|
922
924
|
}
|