Преглед изворни кода

Avoid modifying source geometry

... as discussed in #10698
WestLangley пре 8 година
родитељ
комит
3188075c59
1 измењених фајлова са 1 додато и 1 уклоњено
  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 } ];
 
 			}