Gui: Fix orthographic camera standard views in an empty scene
This commit is contained in:
committed by
Yorik van Havre
parent
db7ee95347
commit
3427e60fe4
@@ -572,7 +572,7 @@ void NavigationStyle::reorientCamera(SoCamera* camera, const SbRotation& rotatio
|
||||
float repositionDistance = -center.getValue()[2] - boundingSphere.getRadius();
|
||||
camera->position = camera->position.getValue() + repositionDistance * dir;
|
||||
camera->nearDistance = 0;
|
||||
camera->farDistance = 2 * boundingSphere.getRadius();
|
||||
camera->farDistance = 2 * boundingSphere.getRadius() + 1;
|
||||
camera->focalDistance = camera->focalDistance.getValue() - repositionDistance;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user