Allow __tilesetDefUid to be null
parent
511e3d5d88
commit
bc634ba326
|
@ -258,7 +258,7 @@ pub const LayerInstance = struct {
|
||||||
.__opacity = float(layer_obj.get("__opacity")) orelse return error.InvalidOpacity,
|
.__opacity = float(layer_obj.get("__opacity")) orelse return error.InvalidOpacity,
|
||||||
.__pxTotalOffsetX = integer(layer_obj.get("__pxTotalOffsetX")) orelse return error.InvalidTotalOffsetX,
|
.__pxTotalOffsetX = integer(layer_obj.get("__pxTotalOffsetX")) orelse return error.InvalidTotalOffsetX,
|
||||||
.__pxTotalOffsetY = integer(layer_obj.get("__pxTotalOffsetY")) orelse return error.InvalidTotalOffsetY,
|
.__pxTotalOffsetY = integer(layer_obj.get("__pxTotalOffsetY")) orelse return error.InvalidTotalOffsetY,
|
||||||
.__tilesetDefUid = integer(layer_obj.get("__tilesetDefUid")) orelse return error.InvalidTilesetDefUid,
|
.__tilesetDefUid = integer(layer_obj.get("__tilesetDefUid")),
|
||||||
.__tilesetRelPath = string(layer_obj.get("__tilesetRelPath")) orelse return error.InvalidTilesetRelPath,
|
.__tilesetRelPath = string(layer_obj.get("__tilesetRelPath")) orelse return error.InvalidTilesetRelPath,
|
||||||
.__type = __type,
|
.__type = __type,
|
||||||
.autoLayerTiles = try TileInstance.fromJSONMany(alloc, layer_obj.get("autoLayerTiles")),
|
.autoLayerTiles = try TileInstance.fromJSONMany(alloc, layer_obj.get("autoLayerTiles")),
|
||||||
|
|
Loading…
Reference in New Issue