Explorar el Código

Avoid modifying source geometry

... as discussed in #10698
WestLangley hace 8 años
padre
commit
3188075c59
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 } ];
 
 			}