Bläddra i källkod

fix bug checking attribute names (#25261)

Co-authored-by: aardgoose <[email protected]>
aardgoose 2 år sedan
förälder
incheckning
982a715fcb
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      examples/jsm/loaders/PLYLoader.js

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

@@ -307,7 +307,7 @@ class PLYLoader extends Loader {
 
 					const name = names[ i ];
 
-					if ( name in elementNames ) return name;
+					if ( elementNames.includes( name ) ) return name;
 
 				}