Skip to content

Commit

Permalink
Fix Decal clamping to positive values not being applied to RenderingS…
Browse files Browse the repository at this point in the history
…erver

This means the Decal editor gizmo could be incorrect compared to the actual
rendering if you enter a negative value in the inspector.
  • Loading branch information
Calinou authored and mandryskowski committed Oct 11, 2023
1 parent 1e0c444 commit a9fea35
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 a9fea35

Please sign in to comment.