Restore UpdateWidgetTransform for Capsule Extent

After manual merging, UpdateWidgetTransform was removed from the Extent capsule. This was a mistake. Updating the widget is especially necessary in cases where we entered a value significantly different from the previous one manually for Extent and then continued to use scaling.
This commit is contained in:
Kirill 2024-09-26 01:23:49 +03:00 committed by GitHub
parent 8dc6731228
commit 98fe75b191
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -804,7 +804,6 @@ namespace CodeWalker.Forms
selectedLight.Flashiness = v; selectedLight.Flashiness = v;
UpdateLightParams(); UpdateLightParams();
} }
} }
private void LightHash_ValueChanged(object sender, EventArgs e) private void LightHash_ValueChanged(object sender, EventArgs e)
@ -852,6 +851,7 @@ namespace CodeWalker.Forms
if (selectedLight.Extent != v) if (selectedLight.Extent != v)
{ {
selectedLight.Extent = v; selectedLight.Extent = v;
UpdateWidgetTransform();
UpdateLightParams(); UpdateLightParams();
} }
} }