Fix offset complaining if it gets a Vec3

This commit is contained in:
Jan Petykiewicz 2021-03-08 17:11:33 -08:00
parent a5900f6ade
commit 8ad4082f6d

View File

@ -251,7 +251,7 @@ def _read_block(block, clean_vertices: bool) -> Pattern:
mirrored = (yscale < 0, xscale < 0)
rotation = numpy.deg2rad(attr.get('rotation', 0))
offset = attr.get('insert', (0, 0, 0))[:2]
offset = numpy.array(attr.get('insert', (0, 0, 0)))[:2]
args = {
'offset': offset,