Fix isolevel brush smoothness calculation in TerrainWorldEditor.

This commit is contained in:
Relintai 2025-02-07 12:27:12 +01:00
parent 58698e2971
commit 5c2f5da950

View File

@ -394,7 +394,7 @@ void TerrainWorldEditor::isolevel_brush_draw(const Vector3 &p_world_position) {
Vector2 tv = Vector2(ilbh - ABS(x), ilbh - ABS(y));
float t = tv.length() / (float)ilbh;
float sl = Math::lerp(0, s, t * _isolevel_brush_smoothness);
float sl = Math::lerp(0, s, CLAMP(t + _isolevel_brush_smoothness, 0, 1));
float npil = 0;