From 2eb49dba59de666008676771f61635775cfea8f7 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sat, 7 Oct 2023 14:38:58 +0300 Subject: [PATCH] Move `Use Inverse Squared Falloff` above `Falloff Exponent` in lights Prevents the checkbox in UI from moving around when toggling the value. --- Source/Engine/Level/Actors/PointLight.h | 14 +++++++------- Source/Engine/Level/Actors/SpotLight.h | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Source/Engine/Level/Actors/PointLight.h b/Source/Engine/Level/Actors/PointLight.h index 50df19232..f40d4a0b0 100644 --- a/Source/Engine/Level/Actors/PointLight.h +++ b/Source/Engine/Level/Actors/PointLight.h @@ -30,18 +30,18 @@ public: API_FIELD(Attributes="EditorOrder(3), DefaultValue(0.0f), EditorDisplay(\"Light\"), Limit(0, 1000, 0.01f)") float SourceLength = 0.0f; - /// - /// Controls the radial falloff of light when UseInverseSquaredFalloff is disabled. - /// - API_FIELD(Attributes="EditorOrder(13), DefaultValue(8.0f), EditorDisplay(\"Light\"), Limit(2, 16, 0.01f), VisibleIf(nameof(UseInverseSquaredFalloff), true)") - float FallOffExponent = 8.0f; - /// /// Whether to use physically based inverse squared distance falloff, where Radius is only clamping the light's contribution. /// - API_FIELD(Attributes="EditorOrder(14), DefaultValue(false), EditorDisplay(\"Light\")") + API_FIELD(Attributes = "EditorOrder(13), DefaultValue(false), EditorDisplay(\"Light\")") bool UseInverseSquaredFalloff = false; + /// + /// Controls the radial falloff of light when UseInverseSquaredFalloff is disabled. + /// + API_FIELD(Attributes="EditorOrder(14), DefaultValue(8.0f), EditorDisplay(\"Light\"), Limit(2, 16, 0.01f), VisibleIf(nameof(UseInverseSquaredFalloff), true)") + float FallOffExponent = 8.0f; + /// /// IES texture (light profiles from real world measured data) /// diff --git a/Source/Engine/Level/Actors/SpotLight.h b/Source/Engine/Level/Actors/SpotLight.h index e6179a522..37735692a 100644 --- a/Source/Engine/Level/Actors/SpotLight.h +++ b/Source/Engine/Level/Actors/SpotLight.h @@ -29,18 +29,18 @@ public: API_FIELD(Attributes="EditorOrder(2), DefaultValue(0.0f), EditorDisplay(\"Light\"), Limit(0, 1000, 0.01f)") float SourceRadius = 0.0f; - /// - /// Controls the radial falloff of light when UseInverseSquaredFalloff is disabled. - /// - API_FIELD(Attributes="EditorOrder(13), DefaultValue(8.0f), EditorDisplay(\"Light\"), Limit(2, 16, 0.01f), VisibleIf(nameof(UseInverseSquaredFalloff), true)") - float FallOffExponent = 8.0f; - /// /// Whether to use physically based inverse squared distance falloff, where Radius is only clamping the light's contribution. /// - API_FIELD(Attributes="EditorOrder(14), DefaultValue(false), EditorDisplay(\"Light\")") + API_FIELD(Attributes = "EditorOrder(13), DefaultValue(false), EditorDisplay(\"Light\")") bool UseInverseSquaredFalloff = false; + /// + /// Controls the radial falloff of light when UseInverseSquaredFalloff is disabled. + /// + API_FIELD(Attributes="EditorOrder(14), DefaultValue(8.0f), EditorDisplay(\"Light\"), Limit(2, 16, 0.01f), VisibleIf(nameof(UseInverseSquaredFalloff), true)") + float FallOffExponent = 8.0f; + /// /// IES texture (light profiles from real world measured data) ///