cdef section.Data
This commit is contained in:
parent
b0e84c9e9b
commit
a4c6ae6fff
@ -359,8 +359,8 @@ class FakeBrushChunk(object):
|
|||||||
section = FakeBrushSection()
|
section = FakeBrushSection()
|
||||||
section.Y = y
|
section.Y = y
|
||||||
if fillBlock.ID:
|
if fillBlock.ID:
|
||||||
section.Blocks = numpy.array([0, fillBlock.ID])[mask.astype(numpy.uint8)]
|
section.Blocks = numpy.array([0, fillBlock.ID], dtype=numpy.uint16)[mask.astype(numpy.uint8)]
|
||||||
section.Data = numpy.array([0, fillBlock.meta])[mask.astype(numpy.uint8)]
|
section.Data = numpy.array([0, fillBlock.meta], dtype=numpy.uint8)[mask.astype(numpy.uint8)]
|
||||||
else:
|
else:
|
||||||
section.Blocks = numpy.array([0, NULL_ID])[mask.astype(numpy.uint8)]
|
section.Blocks = numpy.array([0, NULL_ID])[mask.astype(numpy.uint8)]
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ class BlockModelMesh(object):
|
|||||||
|
|
||||||
def createVertexArrays(self):
|
def createVertexArrays(self):
|
||||||
cdef numpy.ndarray[numpy.uint16_t, ndim=3] areaBlocks
|
cdef numpy.ndarray[numpy.uint16_t, ndim=3] areaBlocks
|
||||||
#cdef numpy.ndarray[numpy.uint8_t, ndim=3] data
|
cdef numpy.ndarray[numpy.uint8_t, ndim=3] data
|
||||||
cdef numpy.ndarray[numpy.uint8_t, ndim=1] renderType
|
cdef numpy.ndarray[numpy.uint8_t, ndim=1] renderType
|
||||||
cdef numpy.ndarray[numpy.uint8_t, ndim=1] opaqueCube
|
cdef numpy.ndarray[numpy.uint8_t, ndim=1] opaqueCube
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user