From 7ad63b8eebdb98d39274d2700199f8491b9f8564 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 26 Apr 2022 16:29:03 -0400 Subject: [PATCH] [42] fix overlays --- VERSION | 2 +- modules/builder.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 1a271bef..8a3342e7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.5-develop41 +1.16.5-develop42 diff --git a/modules/builder.py b/modules/builder.py index 1eb9efee..6c847fb0 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -291,12 +291,12 @@ class CollectionBuilder: if ("group" in data[methods["overlay"]] or "weight" in data[methods["overlay"]]) and (not self.overlay_group or self.overlay_weight is None): raise Failed(f"{self.Type} Error: overlay group and overlay weight must be used together") x_coordinate = None - if "x_coordinate" in data[methods["x_coordinate"]] and data[methods["overlay"]]["x_coordinate"] is not None: + if "x_coordinate" in data[methods["overlay"]] and data[methods["overlay"]]["x_coordinate"] is not None: x_coordinate = util.check_num(data[methods["overlay"]]["x_coordinate"]) if x_coordinate is None or x_coordinate < 0: raise Failed(f"{self.Type} Error: overlay x_coordinate: {data[methods['overlay']]['x_coordinate']} invalid must be a number 0 or greater") y_coordinate = None - if "y_coordinate" in data[methods["y_coordinate"]] and data[methods["overlay"]]["y_coordinate"] is not None: + if "y_coordinate" in data[methods["overlay"]] and data[methods["overlay"]]["y_coordinate"] is not None: y_coordinate = util.check_num(data[methods["overlay"]]["y_coordinate"]) if y_coordinate is None or y_coordinate < 0: raise Failed(f"{self.Type} Error: overlay y_coordinate: {data[methods['overlay']]['y_coordinate']} invalid must be a number 0 or greater")