소스 검색

chore: slice loop replace

guoguangwu 2 년 전
부모
커밋
29cf04713d
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      geometry/geometry.go

+ 1 - 4
geometry/geometry.go

@@ -95,10 +95,7 @@ func (g *Geometry) AddGroup(start, count, matIndex int) *Group {
 
 // AddGroupList adds the specified list of groups to this geometry.
 func (g *Geometry) AddGroupList(groups []Group) {
-
-	for _, group := range groups {
-		g.groups = append(g.groups, group)
-	}
+	g.groups = append(g.groups, groups...)
 }
 
 // GroupCount returns the number of geometry groups (for multimaterial).