Browse Source

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.
pull/226/head
Patrick Dulebohn 4 years ago
parent
commit
cf217d3528
  1. 4
      korman/ui/ui_world.py

4
korman/ui/ui_world.py

@ -262,6 +262,10 @@ class PlasmaEnvironmentPanel(AgeButtonsPanel, bpy.types.Panel):
layout = self.layout layout = self.layout
fni = context.world.plasma_fni 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 # basic colors
split = layout.split() split = layout.split()
col = split.column() col = split.column()

Loading…
Cancel
Save