Fix incorrect dtype in updateLightsByCoord

This commit is contained in:
David Vierra 2015-11-01 15:20:39 -10:00
parent 48e51a12ba
commit bfd2bd9bc9

View File

@ -394,9 +394,9 @@ def updateLightsByCoord(dim, x, y, z):
if not dim.hasLights:
return
x = np.asarray(x, 'i32').ravel()
y = np.asarray(y, 'i32').ravel()
z = np.asarray(z, 'i32').ravel()
x = np.asarray(x, 'i4').ravel()
y = np.asarray(y, 'i4').ravel()
z = np.asarray(z, 'i4').ravel()
cdef cnp.ndarray[ndim=1, dtype=int] ax = x
cdef cnp.ndarray[ndim=1, dtype=int] ay = y
cdef cnp.ndarray[ndim=1, dtype=int] az = z