mirror of https://github.com/odrling/Aegisub
Increase max precision in the rotation tools to four digits so that rotations over 100 degrees aren't rounded to ints
Originally committed to SVN as r6090.
This commit is contained in:
parent
d9ab41468c
commit
965a292a05
|
@ -155,8 +155,8 @@ void VisualToolRotateXY::UpdateHold() {
|
|||
angle_x = fmodf(angle_x + 360.f, 360.f);
|
||||
angle_y = fmodf(angle_y + 360.f, 360.f);
|
||||
|
||||
SetSelectedOverride("\\frx", wxString::Format("(%0.3g)", angle_x));
|
||||
SetSelectedOverride("\\fry", wxString::Format("(%0.3g)", angle_y));
|
||||
SetSelectedOverride("\\frx", wxString::Format("%.4g", angle_x));
|
||||
SetSelectedOverride("\\fry", wxString::Format("%.4g", angle_y));
|
||||
}
|
||||
|
||||
void VisualToolRotateXY::UpdateDrag(feature_iterator feature) {
|
||||
|
|
|
@ -114,7 +114,7 @@ void VisualToolRotateZ::UpdateHold() {
|
|||
|
||||
angle = fmodf(angle + 360.f, 360.f);
|
||||
|
||||
SetSelectedOverride("\\frz", wxString::Format("(%0.3g)", angle));
|
||||
SetSelectedOverride("\\frz", wxString::Format("%.4g", angle));
|
||||
}
|
||||
|
||||
void VisualToolRotateZ::UpdateDrag(feature_iterator feature) {
|
||||
|
|
Loading…
Reference in New Issue