Просмотр исходного кода

Fix SetIndices() not marking indices as updated

Causes geometry to break when changing vertex buffer size
Pavel 7 лет назад
Родитель
Сommit
156e87b5c0
1 измененных файлов с 1 добавлено и 0 удалено
  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
 }