Limit variable layer height displaying precision to 3 digits (#5795)

* Limit variable layer height calculation and displaying precision to three digits.

* Remove calculation rounding.
This commit is contained in:
Vovodroid 2024-07-29 14:13:50 +03:00 committed by GitHub
parent c08126703c
commit 2ee3800a47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -383,7 +383,7 @@ std::string GLCanvas3D::LayersEditing::get_tooltip(const GLCanvas3D& canvas) con
}
}
if (h > 0.0f)
ret = std::to_string(h);
ret = wxString::Format("%.3f",h).ToStdString();
}
}
return ret;