From a052d341292a6c47f57180c181dc4fbd311d7900 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 27 Sep 2023 02:21:07 +0200 Subject: [PATCH] Fix Decal clamping to positive values not being applied to RenderingServer This means the Decal editor gizmo could be incorrect compared to the actual rendering if you enter a negative value in the inspector. --- scene/3d/decal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/decal.cpp b/scene/3d/decal.cpp index 50a5b2da707..fecf70fe5de 100644 --- a/scene/3d/decal.cpp +++ b/scene/3d/decal.cpp @@ -32,7 +32,7 @@ void Decal::set_size(const Vector3 &p_size) { size = Vector3(MAX(0.001, p_size.x), MAX(0.001, p_size.y), MAX(0.001, p_size.z)); - RS::get_singleton()->decal_set_size(decal, p_size); + RS::get_singleton()->decal_set_size(decal, size); update_gizmos(); }