[NaviCube]Fix error when 'NaviStepByTurn' parameter value leads to non-integer angle increment step
This commit is contained in:
committed by
Yorik van Havre
parent
7eca87584c
commit
0ead4c5946
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user