Skip to content

Commit 3a0e2b8

Browse files
committed
GLTFLoader: Revert automatic node naming.
1 parent 277c636 commit 3a0e2b8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

examples/js/loaders/GLTFLoader.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2890,8 +2890,6 @@ THREE.GLTFLoader = ( function () {
28902890

28912891
};
28922892

2893-
var nextNodeIndex = 1;
2894-
28952893
/**
28962894
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#nodes-and-hierarchy
28972895
* @param {number} nodeIndex
@@ -2981,10 +2979,6 @@ THREE.GLTFLoader = ( function () {
29812979

29822980
node.name = THREE.PropertyBinding.sanitizeNodeName( nodeDef.name );
29832981

2984-
} else {
2985-
2986-
node.name = 'gltfNode' + ( nextNodeIndex++ );
2987-
29882982
}
29892983

29902984
if ( nodeDef.extras ) node.userData = nodeDef.extras;

0 commit comments

Comments
 (0)