mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2026-01-07 03:41:20 +01:00
fix(layer): common_attributes required attributes
This commit is contained in:
@@ -214,7 +214,11 @@ def _get_common_attributes(raw_layer: RawLayer) -> Layer:
|
|||||||
Returns:
|
Returns:
|
||||||
Layer: The attributes in common of all layers
|
Layer: The attributes in common of all layers
|
||||||
"""
|
"""
|
||||||
common_attributes = Layer(name=raw_layer["name"])
|
common_attributes = Layer(
|
||||||
|
name=raw_layer["name"],
|
||||||
|
opacity=raw_layer["opacity"],
|
||||||
|
visible=raw_layer["visible"],
|
||||||
|
)
|
||||||
|
|
||||||
if raw_layer.get("startx") is not None:
|
if raw_layer.get("startx") is not None:
|
||||||
common_attributes.coordinates = OrderedPair(
|
common_attributes.coordinates = OrderedPair(
|
||||||
|
|||||||
Reference in New Issue
Block a user