From cf217d352881c96be040d61643ea37225b94c0c7 Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn Date: Mon, 26 Oct 2020 23:52:07 -0400 Subject: [PATCH] Add Linear Fog Value Warning Warns the user if the linear fog start value is greater than the end value, which can cause visual fog problems. --- korman/ui/ui_world.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/korman/ui/ui_world.py b/korman/ui/ui_world.py index 5443248..c4bcb8c 100644 --- a/korman/ui/ui_world.py +++ b/korman/ui/ui_world.py @@ -262,6 +262,10 @@ class PlasmaEnvironmentPanel(AgeButtonsPanel, bpy.types.Panel): layout = self.layout fni = context.world.plasma_fni + # warn about reversed linear fog values + if fni.fog_method == "linear" and fni.fog_start >= fni.fog_end and (fni.fog_start + fni.fog_end) != 0: + layout.label(text="Fog Start Value should be less than the End Value", icon="ERROR") + # basic colors split = layout.split() col = split.column()