summaryrefslogtreecommitdiff
path: root/scene/3d/decal.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-20 23:57:55 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-20 23:57:55 +0100
commitd5838a06faabc9c7a5cc35147a63bc2d5caf28e7 (patch)
tree97671b2f1d01589b9af14917c6c2288e7c8da6e5 /scene/3d/decal.cpp
parentde3514b9ab2679a99f2c9231fb5491d98e499cf6 (diff)
parent49bebf2bfb490d9e2e9ae8ce7fd81fb8c1d967ae (diff)
Merge pull request #71709 from clayjohn/decals-lights-sorting
Sort decals and lights based on camera origin
Diffstat (limited to 'scene/3d/decal.cpp')
-rw-r--r--scene/3d/decal.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/decal.cpp b/scene/3d/decal.cpp
index e9cc4e9479..fbcb1c8f2c 100644
--- a/scene/3d/decal.cpp
+++ b/scene/3d/decal.cpp
@@ -156,6 +156,10 @@ void Decal::_validate_property(PropertyInfo &p_property) const {
if (!distance_fade_enabled && (p_property.name == "distance_fade_begin" || p_property.name == "distance_fade_length")) {
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
}
+
+ if (p_property.name == "sorting_offset") {
+ p_property.usage = PROPERTY_USAGE_DEFAULT;
+ }
}
PackedStringArray Decal::get_configuration_warnings() const {