@onerjs/loaders 8.51.9 → 8.52.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.
package/glTF/2.0/glTFLoader.js
CHANGED
|
@@ -755,7 +755,7 @@ export class GLTFLoader {
|
|
|
755
755
|
const transformNode = this.parent.createEmptyNodeHandle ? this.parent.createEmptyNodeHandle(node, this._babylonScene) : new TransformNode(nodeName, this._babylonScene);
|
|
756
756
|
transformNode._parentContainer = this._assetContainer;
|
|
757
757
|
this._babylonScene._blockEntityCollection = false;
|
|
758
|
-
if (
|
|
758
|
+
if (!hasMesh) {
|
|
759
759
|
node._babylonTransformNode = transformNode;
|
|
760
760
|
}
|
|
761
761
|
else {
|
|
@@ -1574,6 +1574,7 @@ export class GLTFLoader {
|
|
|
1574
1574
|
const babylonAnimations = propertyInfo.buildAnimations(target, name, fps, keys);
|
|
1575
1575
|
for (const babylonAnimation of babylonAnimations) {
|
|
1576
1576
|
numAnimations++;
|
|
1577
|
+
babylonAnimation.babylonAnimation.metadata = channel.extras;
|
|
1577
1578
|
onLoad(babylonAnimation.babylonAnimatable, babylonAnimation.babylonAnimation);
|
|
1578
1579
|
}
|
|
1579
1580
|
}
|