Explorar o código

OBJLoader: Clarify comment skips. (#25906)

* docs: make comment check more self-documenting

* make suggested change
Hamir Mahal %!s(int64=2) %!d(string=hai) anos
pai
achega
22242d5931
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/jsm/loaders/OBJLoader.js

+ 1 - 1
examples/jsm/loaders/OBJLoader.js

@@ -515,7 +515,7 @@ class OBJLoader extends Loader {
 			const lineFirstChar = line.charAt( 0 );
 
 			// @todo invoke passed in handler if any
-			if ( lineFirstChar === '#' ) continue;
+			if ( lineFirstChar === '#' ) continue; // skip comments
 
 			if ( lineFirstChar === 'v' ) {