Unverified Commit 2d8d311b by Rémi Verschelde Committed by GitHub

Merge pull request #38617 from madmiraal/fix-38514

Prevent CapsuleShape2D height from being less than zero.
parents c304b66a 68eaaa6d
......@@ -72,6 +72,9 @@ real_t CapsuleShape2D::get_radius() const {
void CapsuleShape2D::set_height(real_t p_height) {
height = p_height;
if (height < 0)
height = 0;
_update_shape();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment