@inweb/viewer-three 26.7.0 → 26.7.2

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.
@@ -2593,7 +2593,7 @@ class GLTFFileLoader extends Loader {
2593
2593
  const modelImpl = new ModelImpl(gltf.scene);
2594
2594
  modelImpl.loader = this;
2595
2595
  modelImpl.viewer = this.viewer;
2596
- this.viewer.scene.add(modelImpl.scene);
2596
+ this.viewer.scene.add(gltf.scene);
2597
2597
  this.viewer.models.push(modelImpl);
2598
2598
  this.viewer.syncOptions();
2599
2599
  this.viewer.syncOverlay();
@@ -4757,6 +4757,7 @@ class Viewer extends EventEmitter2 {
4757
4757
  return this;
4758
4758
  }
4759
4759
  openGltfFile(file, externalFiles, params = {}) {
4760
+ console.warn("Viewer.openGltfFile() has been deprecated since 26.4 and will be removed in a future release, use Viewer.open() instead.");
4760
4761
  return this.open(file, {
4761
4762
  ...params,
4762
4763
  format: "gltf",
@@ -4764,6 +4765,7 @@ class Viewer extends EventEmitter2 {
4764
4765
  });
4765
4766
  }
4766
4767
  loadGltfFile(file, externalFiles, params = {}) {
4768
+ console.warn("Viewer.loadGltfFile() has been deprecated since 26.4 and will be removed in a future release, use Viewer.open() instead.");
4767
4769
  return this.open(file, {
4768
4770
  ...params,
4769
4771
  format: "gltf",