Explorar el Código

Merge pull request #38 from exploser/fix-indices

Fix SetIndices() not marking indices as updated
Daniel Salvadori hace 7 años
padre
commit
bf69d14ad1
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      geometry/geometry.go

+ 1 - 0
geometry/geometry.go

@@ -126,6 +126,7 @@ func (g *Geometry) GroupAt(idx int) *Group {
 func (g *Geometry) SetIndices(indices math32.ArrayU32) {
 
 	g.indices = indices
+	g.updateIndices = true
 	g.boundingBoxValid = false
 	g.boundingSphereValid = false
 }