From 19b4b8e0b0561693ff2590e3c715fcb25b4298b6 Mon Sep 17 00:00:00 2001 From: Joseph Davies Date: Fri, 15 Oct 2021 07:36:28 -0700 Subject: [PATCH] Fix irrelevant fade distance warning. --- korman/ui/modifiers/render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/korman/ui/modifiers/render.py b/korman/ui/modifiers/render.py index fe17821..b660872 100644 --- a/korman/ui/modifiers/render.py +++ b/korman/ui/modifiers/render.py @@ -162,7 +162,8 @@ def fademod(modifier, layout, context): col.prop(modifier, "far_opaq") col.prop(modifier, "far_trans") - if not (modifier.near_trans <= modifier.near_opaq <= modifier.far_opaq <= modifier.far_trans): + if (modifier.fader_type in ("SimpleDist", "DistOpacity") and + not (modifier.near_trans <= modifier.near_opaq <= modifier.far_opaq <= modifier.far_trans)): # Warn the user that the values are not recommended. layout.label("Distance values must be equal or increasing!", icon="ERROR")