@onerjs/loaders 8.30.1 → 8.30.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/glTF/2.0/glTFLoader.js
CHANGED
|
@@ -704,7 +704,7 @@ export class GLTFLoader {
|
|
|
704
704
|
if (!hasMesh || hasSkin) {
|
|
705
705
|
const nodeName = node.name || `node${node.index}`;
|
|
706
706
|
this._babylonScene._blockEntityCollection = !!this._assetContainer;
|
|
707
|
-
const transformNode = new TransformNode(nodeName, this._babylonScene);
|
|
707
|
+
const transformNode = this.parent.createEmptyNodeHandle ? this.parent.createEmptyNodeHandle(node, this._babylonScene) : new TransformNode(nodeName, this._babylonScene);
|
|
708
708
|
transformNode._parentContainer = this._assetContainer;
|
|
709
709
|
this._babylonScene._blockEntityCollection = false;
|
|
710
710
|
if (node.mesh == undefined) {
|