Procházet zdrojové kódy

Fix incorrect index calculation in Mesh.Raycast()

This fixes #78
Pavel před 7 roky
rodič
revize
e9620d4b9a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      graphic/mesh.go

+ 1 - 1
graphic/mesh.go

@@ -154,7 +154,7 @@ func (m *Mesh) Raycast(rc *core.Raycaster, intersects *[]core.Intersect) {
 			intersect.Index = uint32(i)
 			*intersects = append(*intersects, *intersect)
 		}
-		i++
+		i += 3
 		return false
 	})
 }