Explorar o código

Merge pull request #217 from Innoviox/master

fix issue #216
Daniel Salvadori %!s(int64=4) %!d(string=hai) anos
pai
achega
451fb52cf1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      graphic/graphic.go

+ 1 - 1
graphic/graphic.go

@@ -207,7 +207,7 @@ func (gr *Graphic) GetMaterial(vpos int) material.IMaterial {
 		if gmat.count == 0 {
 			return gmat.imat
 		}
-		if gmat.start >= vpos && gmat.start+gmat.count <= vpos {
+		if gmat.start <= vpos && gmat.start+gmat.count >= vpos {
 			return gmat.imat
 		}
 	}