Lewy Blue 7 years ago
parent
commit
5e8f323550
1 changed files with 3 additions and 1 deletions
  1. 3 1
      examples/js/loaders/FBXLoader.js

+ 3 - 1
examples/js/loaders/FBXLoader.js

@@ -180,7 +180,7 @@
 				var id = parseInt( nodeID );
 				var id = parseInt( nodeID );
 
 
 				// check whether the file name is used by another videoNode
 				// check whether the file name is used by another videoNode
-				// and if so keep a record of both ids to as a duplicate pair [ id1, id2 ]
+				// and if so keep a record of both ids as a duplicate pair [ id1, id2 ]
 				if ( videoNode.properties.fileName in names ) {
 				if ( videoNode.properties.fileName in names ) {
 
 
 					duplicates.push( [ id, names[ videoNode.properties.fileName ] ] );
 					duplicates.push( [ id, names[ videoNode.properties.fileName ] ] );
@@ -204,6 +204,8 @@
 
 
 		// check each duplicate pair - if only one is in the image map then
 		// check each duplicate pair - if only one is in the image map then
 		// create an entry for the other id containing the same image data
 		// create an entry for the other id containing the same image data
+		// Note: it seems to be possible for entries to have the same file name but different
+		// content, we won't overwrite these
 		duplicates.forEach( function ( duplicatePair ) {
 		duplicates.forEach( function ( duplicatePair ) {
 
 
 			if ( imageMap.has( duplicatePair[ 0 ] ) && ! imageMap.has( duplicatePair[ 1 ] ) ) {
 			if ( imageMap.has( duplicatePair[ 0 ] ) && ! imageMap.has( duplicatePair[ 1 ] ) ) {