|
@@ -10,6 +10,7 @@ module BABYLON {
|
|
}
|
|
}
|
|
interface OGLTFNode {
|
|
interface OGLTFNode {
|
|
mesh: number;
|
|
mesh: number;
|
|
|
|
+ name?: string;
|
|
translation?: number[];
|
|
translation?: number[];
|
|
scale?: number[];
|
|
scale?: number[];
|
|
rotation?: number[];
|
|
rotation?: number[];
|
|
@@ -623,6 +624,9 @@ module BABYLON {
|
|
}
|
|
}
|
|
gltf.meshes.push(mesh);
|
|
gltf.meshes.push(mesh);
|
|
node.mesh = gltf.meshes.length - 1;
|
|
node.mesh = gltf.meshes.length - 1;
|
|
|
|
+ if (babylonMesh.name) {
|
|
|
|
+ node.name = babylonMesh.name;
|
|
|
|
+ }
|
|
gltf.nodes.push(node);
|
|
gltf.nodes.push(node);
|
|
|
|
|
|
scene.nodes.push(gltf.nodes.length - 1);
|
|
scene.nodes.push(gltf.nodes.length - 1);
|