Procházet zdrojové kódy

Avoid modifying source geometry

... as discussed in #10698
WestLangley před 8 roky
rodič
revize
3188075c59
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/geometries/WireframeGeometry.js

+ 1 - 1
src/geometries/WireframeGeometry.js

@@ -86,7 +86,7 @@ function WireframeGeometry( geometry ) {
 
 			if ( groups.length === 0 ) {
 
-				geometry.addGroup( 0, indices.count );
+				groups = [ { start: 0, count: indices.count, materialIndex: 0 } ];
 
 			}