Fix walk navigation: scene unit used even when unit not set
This commit is contained in:
parent
ad0c2d6cbb
commit
9e188fdd53
|
@ -519,7 +519,7 @@ static bool initWalkInfo(bContext *C, WalkInfo *walk, wmOperator *op)
|
|||
walk->speed = 0.0f;
|
||||
walk->is_fast = false;
|
||||
walk->is_slow = false;
|
||||
walk->grid = 1.f / walk->scene->unit.scale_length;
|
||||
walk->grid = (walk->scene->unit.system == USER_UNIT_NONE) ? 1.f : 1.f / walk->scene->unit.scale_length;
|
||||
|
||||
/* user preference settings */
|
||||
walk->teleport.duration = U.walk_navigation.teleport_time;
|
||||
|
|
Loading…
Reference in New Issue