Browse Source

Fix irrelevant fade distance warning.

pull/300/head
Joseph Davies 3 years ago
parent
commit
19b4b8e0b0
Signed by untrusted user: Deledrius
GPG Key ID: 28ACC6E8D2B24B8A
  1. 3
      korman/ui/modifiers/render.py

3
korman/ui/modifiers/render.py

@ -162,7 +162,8 @@ def fademod(modifier, layout, context):
col.prop(modifier, "far_opaq") col.prop(modifier, "far_opaq")
col.prop(modifier, "far_trans") 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. # Warn the user that the values are not recommended.
layout.label("Distance values must be equal or increasing!", icon="ERROR") layout.label("Distance values must be equal or increasing!", icon="ERROR")

Loading…
Cancel
Save