From 9b807c2cbf8585997f9534f9d5e4a8cab4092f05 Mon Sep 17 00:00:00 2001 From: Sergey Vartanov Date: Fri, 4 Jun 2021 04:36:40 +0300 Subject: [PATCH] Add camera direction processing. --- roentgen/scheme.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/roentgen/scheme.py b/roentgen/scheme.py index f33c13b..f31c696 100644 --- a/roentgen/scheme.py +++ b/roentgen/scheme.py @@ -357,11 +357,12 @@ class Scheme: returned: IconSet = IconSet(main_icon, extra_icons, processed) self.cache[tags_hash] = returned, priority - if "direction" in tags: - if DirectionSet(tags["direction"]).is_right() is False: - for specification in main_icon.shape_specifications: - if specification.shape.is_right_directed: - specification.flip_horizontally = True + for key in ["direction", "camera:direction"]: + if key in tags: + if DirectionSet(tags[key]).is_right() is False: + for specification in main_icon.shape_specifications: + if specification.shape.is_right_directed: + specification.flip_horizontally = True return returned, priority