Skip to content

Commit 29cf047

Browse files
committed
chore: slice loop replace
1 parent b5c63e9 commit 29cf047

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

geometry/geometry.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ func (g *Geometry) AddGroup(start, count, matIndex int) *Group {
9595

9696
// AddGroupList adds the specified list of groups to this geometry.
9797
func (g *Geometry) AddGroupList(groups []Group) {
98-
99-
for _, group := range groups {
100-
g.groups = append(g.groups, group)
101-
}
98+
g.groups = append(g.groups, groups...)
10299
}
103100

104101
// GroupCount returns the number of geometry groups (for multimaterial).

0 commit comments

Comments
 (0)