Skip to content

Commit

Permalink
Setting position in correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
bcvery1 committed Apr 15, 2019
1 parent 2cb87ef commit d601bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sprite.go
Expand Up @@ -102,10 +102,10 @@ func (s *Sprite) calcData() {
(*s.tri)[5].Position = Vec{}.Sub(horizontal).Add(vertical)

for i := range *s.tri {
(*s.tri)[i].Position = s.matrix.Project((*s.tri)[i].Position)
(*s.tri)[i].Color = s.mask
(*s.tri)[i].Picture = center.Add((*s.tri)[i].Position)
(*s.tri)[i].Intensity = 1
(*s.tri)[i].Position = s.matrix.Project((*s.tri)[i].Position)
}

s.d.Dirty()
Expand Down

0 comments on commit d601bc6

Please sign in to comment.