mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-14 16:51:51 +02:00
Add camera direction processing.
This commit is contained in:
parent
172b48af53
commit
9b807c2cbf
1 changed files with 6 additions and 5 deletions
|
@ -357,8 +357,9 @@ class Scheme:
|
||||||
returned: IconSet = IconSet(main_icon, extra_icons, processed)
|
returned: IconSet = IconSet(main_icon, extra_icons, processed)
|
||||||
self.cache[tags_hash] = returned, priority
|
self.cache[tags_hash] = returned, priority
|
||||||
|
|
||||||
if "direction" in tags:
|
for key in ["direction", "camera:direction"]:
|
||||||
if DirectionSet(tags["direction"]).is_right() is False:
|
if key in tags:
|
||||||
|
if DirectionSet(tags[key]).is_right() is False:
|
||||||
for specification in main_icon.shape_specifications:
|
for specification in main_icon.shape_specifications:
|
||||||
if specification.shape.is_right_directed:
|
if specification.shape.is_right_directed:
|
||||||
specification.flip_horizontally = True
|
specification.flip_horizontally = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue