Преглед изворни кода

Store original node name in userData.

Kalacione пре 6 година
родитељ
комит
0bb685c81d
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      examples/js/loaders/GLTFLoader.js

+ 1 - 0
examples/js/loaders/GLTFLoader.js

@@ -2996,6 +2996,7 @@ THREE.GLTFLoader = ( function () {
 
 			if ( nodeDef.name !== undefined ) {
 
+				node.userData.name = nodeDef.name;
 				node.name = THREE.PropertyBinding.sanitizeNodeName( nodeDef.name );
 
 			}