aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2023-09-05 08:48:44 +0200
committerThéo de la Hogue2023-09-05 08:48:44 +0200
commit9b9cf7ca527aa9d73386d306a1a25a315e0610d7 (patch)
treeac0ea6486f31aa834f75a8e224c8b464cc0a9e32
parent2b64a79dbc676d531004b4a2d70d6076957f4f4c (diff)
downloadargaze-9b9cf7ca527aa9d73386d306a1a25a315e0610d7.zip
argaze-9b9cf7ca527aa9d73386d306a1a25a315e0610d7.tar.gz
argaze-9b9cf7ca527aa9d73386d306a1a25a315e0610d7.tar.bz2
argaze-9b9cf7ca527aa9d73386d306a1a25a315e0610d7.tar.xz
Drawing background only if heatmap object is None too.
-rw-r--r--src/argaze/ArFeatures.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/argaze/ArFeatures.py b/src/argaze/ArFeatures.py
index f40377b..1a13092 100644
--- a/src/argaze/ArFeatures.py
+++ b/src/argaze/ArFeatures.py
@@ -1019,7 +1019,7 @@ class ArFrame():
self.__look_lock.acquire()
# Draw background only
- if background_weight is not None and heatmap_weight is None:
+ if background_weight is not None and (heatmap_weight is None or self.heatmap is None):
image = self.background.copy()
@@ -1069,7 +1069,6 @@ class ArFrame():
Parameters:
kwargs: ArFrame.__image parameters
"""
-
# Use image_parameters attribute if no kwargs
if kwargs: