Skip to content

Commit

Permalink
Merge pull request g3n#293 from testwill/slice
Browse files Browse the repository at this point in the history
chore: slice loop replace
  • Loading branch information
danaugrs authored Oct 19, 2023
2 parents b5c63e9 + 29cf047 commit fc34de5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions geometry/geometry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit fc34de5

Please sign in to comment.