From bfd2bd9bc90daf468802e0ddefd8065ca584cd5e Mon Sep 17 00:00:00 2001 From: David Vierra Date: Sun, 1 Nov 2015 15:20:39 -1000 Subject: [PATCH] Fix incorrect dtype in updateLightsByCoord --- src/mceditlib/relight/with_cython.pyx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mceditlib/relight/with_cython.pyx b/src/mceditlib/relight/with_cython.pyx index a72e732..695d38e 100644 --- a/src/mceditlib/relight/with_cython.pyx +++ b/src/mceditlib/relight/with_cython.pyx @@ -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