summaryrefslogtreecommitdiff
path: root/scene/2d/light_2d.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-08-22 21:39:48 +0200
committerGitHub <noreply@github.com>2022-08-22 21:39:48 +0200
commit1f61d477662fdbbb43cd3703aaac2d25d1c19e3a (patch)
tree645c01e9ca1dfa17e7cc37bcfe2697f30125bcb1 /scene/2d/light_2d.cpp
parent5bc8702855a92940bb5a56dd28660c86ee5c7b7a (diff)
parent1a24c9e14bf1f9578eda338344c12faf66fb0e65 (diff)
Merge pull request #64339 from YuriSizov/core-multilevel-validate-property
Diffstat (limited to 'scene/2d/light_2d.cpp')
-rw-r--r--scene/2d/light_2d.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/light_2d.cpp b/scene/2d/light_2d.cpp
index 0481a58431..7eb6b43af7 100644
--- a/scene/2d/light_2d.cpp
+++ b/scene/2d/light_2d.cpp
@@ -227,9 +227,9 @@ real_t Light2D::get_shadow_smooth() const {
return shadow_smooth;
}
-void Light2D::_validate_property(PropertyInfo &property) const {
- if (!shadow && (property.name == "shadow_color" || property.name == "shadow_filter" || property.name == "shadow_filter_smooth" || property.name == "shadow_item_cull_mask")) {
- property.usage = PROPERTY_USAGE_NO_EDITOR;
+void Light2D::_validate_property(PropertyInfo &p_property) const {
+ if (!shadow && (p_property.name == "shadow_color" || p_property.name == "shadow_filter" || p_property.name == "shadow_filter_smooth" || p_property.name == "shadow_item_cull_mask")) {
+ p_property.usage = PROPERTY_USAGE_NO_EDITOR;
}
}