Skip to content

Commit

Permalink
Merge pull request godotengine#82416 from Calinou/decal-fix-clamp-ext…
Browse files Browse the repository at this point in the history
…ents

Fix Decal clamping to positive values not being applied to RenderingServer
  • Loading branch information
akien-mga committed Sep 27, 2023
2 parents 3228f73 + a052d34 commit 545d1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/3d/decal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 545d1c0

Please sign in to comment.