forked from mia/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
2 changed files with 3 additions and 3 deletions
|
@ -155,8 +155,8 @@ void VisualToolRotateXY::UpdateHold() {
|
||||||
angle_x = fmodf(angle_x + 360.f, 360.f);
|
angle_x = fmodf(angle_x + 360.f, 360.f);
|
||||||
angle_y = fmodf(angle_y + 360.f, 360.f);
|
angle_y = fmodf(angle_y + 360.f, 360.f);
|
||||||
|
|
||||||
SetSelectedOverride("\\frx", wxString::Format("(%0.3g)", angle_x));
|
SetSelectedOverride("\\frx", wxString::Format("%.4g", angle_x));
|
||||||
SetSelectedOverride("\\fry", wxString::Format("(%0.3g)", angle_y));
|
SetSelectedOverride("\\fry", wxString::Format("%.4g", angle_y));
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisualToolRotateXY::UpdateDrag(feature_iterator feature) {
|
void VisualToolRotateXY::UpdateDrag(feature_iterator feature) {
|
||||||
|
|
|
@ -114,7 +114,7 @@ void VisualToolRotateZ::UpdateHold() {
|
||||||
|
|
||||||
angle = fmodf(angle + 360.f, 360.f);
|
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) {
|
void VisualToolRotateZ::UpdateDrag(feature_iterator feature) {
|
||||||
|
|
Loading…
Reference in a new issue