diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-10-23 12:41:10 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-10-25 18:31:41 +0200 |
commit | c1de2007577780010145eb1c6b44aa722dca3897 (patch) | |
tree | 4825bbc409621d17c5bfbb794a172aa25a666c98 /scene/3d/light_3d.h | |
parent | 0082b9675e52b3efddcf7f30126333524c2a2ea1 (diff) |
Only show relevant properties in the DirectionalLight3D inspector
Some split distance properties are unused depending on the
current shadow mode. Also, Blend Splits can only be used if the shadow
mode is PSSM 2 Splits or PSSM 4 Splits.
This also moves the Fade Start property to be located after the
split properties. This avoids intertwining "conditional" properties
with a property that's always available.
Diffstat (limited to 'scene/3d/light_3d.h')
-rw-r--r-- | scene/3d/light_3d.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/light_3d.h b/scene/3d/light_3d.h index f788c323f7..a9f5ce27b4 100644 --- a/scene/3d/light_3d.h +++ b/scene/3d/light_3d.h @@ -152,6 +152,7 @@ private: protected: static void _bind_methods(); + virtual void _validate_property(PropertyInfo &property) const override; public: void set_shadow_mode(ShadowMode p_mode); |