Browse Source

Avoid modifying source geometry

... as discussed in #10698
WestLangley 8 years ago
parent
commit
3188075c59
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/geometries/WireframeGeometry.js

+ 1 - 1
src/geometries/WireframeGeometry.js

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