X Tutup
Skip to content

Commit 5cfccbe

Browse files
committed
Merge pull request #117189 from KoBeWi/nosize4ever
Fix DirectionalLight3D property list
2 parents ef1142e + cd1d676 commit 5cfccbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scene/3d/light_3d.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,8 @@ void DirectionalLight3D::_validate_property(PropertyInfo &p_property) const {
554554
// Splits 3 and 4 are only used with the PSSM 4 Splits shadow mode.
555555
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
556556
}
557-
} else if (p_property.name == "light_size" || p_property.name == "light_projector") {
557+
}
558+
if (p_property.name == "light_size" || p_property.name == "light_projector") {
558559
// Not implemented in DirectionalLight3D (`light_size` is replaced by `light_angular_distance`).
559560
p_property.usage = PROPERTY_USAGE_NONE;
560561
} else if (p_property.name == "distance_fade_enabled" || p_property.name == "distance_fade_begin" || p_property.name == "distance_fade_shadow" || p_property.name == "distance_fade_length") {

0 commit comments

Comments
 (0)
X Tutup