Sfoglia il codice sorgente

SEA3DLoader: Added name to morphAttributes

Mugen87 8 anni fa
parent
commit
569ac00546
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      examples/js/loaders/sea3d/SEA3DLoader.js

+ 1 - 0
examples/js/loaders/sea3d/SEA3DLoader.js

@@ -2876,6 +2876,7 @@ THREE.SEA3D.prototype.readMorpher = function ( sea ) {
 		var node = sea.node[ i ];
 		var node = sea.node[ i ];
 
 
 		attribs.position[ i ] = new THREE.Float32BufferAttribute( node.vertex, 3 );
 		attribs.position[ i ] = new THREE.Float32BufferAttribute( node.vertex, 3 );
+		attribs.position[ i ].name = node.name;
 
 
 		if ( node.normal ) {
 		if ( node.normal ) {