[NaviCube]Fix error when 'NaviStepByTurn' parameter value leads to non-integer angle increment step

This commit is contained in:
0penBrain
2020-01-22 19:15:45 +01:00
committed by Yorik van Havre
parent 7eca87584c
commit 0ead4c5946

View File

@@ -1157,7 +1157,7 @@ bool NaviCubeImplementation::mouseReleased(short x, short y) {
int pick = pickFace(x, y);
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
float rotStepAngle = 360/hGrp->GetInt("NaviStepByTurn",8);
float rotStepAngle = 360.0f/hGrp->GetInt("NaviStepByTurn",8);
switch (pick) {
default: