@threlte/gltf 1.0.0-next.3 → 1.0.0-next.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @threlte/gltf
2
2
 
3
+ ## 1.0.0-next.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 16e75c31: Fixed a bug where the suspense was created in the wrong place when preloading was activated.
8
+
3
9
  ## 1.0.0-next.3
4
10
 
5
11
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threlte/gltf",
3
- "version": "1.0.0-next.3",
3
+ "version": "1.0.0-next.4",
4
4
  "description": "GLTF to Threlte converter",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -515,6 +515,7 @@ ${
515
515
  ${options.types ? printThrelteTypes(objects, animations) : ''}
516
516
 
517
517
  const load = () => {
518
+ ${options.suspend ? 'const suspend = useSuspense()' : ''}
518
519
  return ${useGltf}
519
520
  }
520
521
 
@@ -537,7 +538,7 @@ ${
537
538
 
538
539
  export const ref = new Group()
539
540
 
540
- ${options.suspense ? 'const suspend = useSuspense()' : ''}
541
+ ${!options.preload && options.suspense ? 'const suspend = useSuspense()' : ''}
541
542
 
542
543
  ${options.types && !options.preload ? printThrelteTypes(objects, animations) : ''}
543
544