From 0dbb7b33fba2c5a1812c21d544eb3bb523724cad Mon Sep 17 00:00:00 2001 From: Darren Eberly Date: Sun, 7 Jun 2020 20:08:59 -0400 Subject: [PATCH] removed opacity attribute from TiledObject as that is not actually a possible attribute of Tiled Objects. --- pytiled_parser/tiled_object.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pytiled_parser/tiled_object.py b/pytiled_parser/tiled_object.py index c21a383..186a18a 100644 --- a/pytiled_parser/tiled_object.py +++ b/pytiled_parser/tiled_object.py @@ -35,7 +35,6 @@ class TiledObject: coordinates: OrderedPair size: Size = Size(0, 0) rotation: float = 0 - opacity: float = 1 visible: bool name: Optional[str] = None @@ -179,7 +178,6 @@ class RawTiledObject(TypedDict): width: float height: float rotation: float - opacity: float visible: bool name: str type: str @@ -217,9 +215,6 @@ def _get_common_attributes(raw_tiled_object: RawTiledObject) -> TiledObject: if raw_tiled_object.get("rotation") is not None: common_attributes.rotation = raw_tiled_object["rotation"] - if raw_tiled_object.get("opacity") is not None: - common_attributes.opacity = raw_tiled_object["opacity"] - if raw_tiled_object.get("name") is not None: common_attributes.name = raw_tiled_object["name"]