@threlte/gltf 1.0.0-next.3 → 1.0.0-next.5
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 +12 -0
- package/package.json +1 -1
- package/src/utils/parser.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @threlte/gltf
|
|
2
2
|
|
|
3
|
+
## 1.0.0-next.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- da70d570: typo
|
|
8
|
+
|
|
9
|
+
## 1.0.0-next.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 16e75c31: Fixed a bug where the suspense was created in the wrong place when preloading was activated.
|
|
14
|
+
|
|
3
15
|
## 1.0.0-next.3
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
package/package.json
CHANGED
package/src/utils/parser.js
CHANGED
|
@@ -515,6 +515,7 @@ ${
|
|
|
515
515
|
${options.types ? printThrelteTypes(objects, animations) : ''}
|
|
516
516
|
|
|
517
517
|
const load = () => {
|
|
518
|
+
${options.suspense ? '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
|
|