removed coin<3 references

This commit is contained in:
andrea
2023-07-24 19:37:11 +02:00
committed by Chris Hennes
parent 64f9251cae
commit 6c2a5c1539
3 changed files with 3 additions and 23 deletions

View File

@@ -2746,9 +2746,7 @@ void View3DInventorViewer::animatedViewAll(int steps, int ms)
SbViewportRegion vp = this->getSoRenderManager()->getViewportRegion();
SbBox3f box = getBoundingBox();
#if (COIN_MAJOR_VERSION >= 3)
float aspectRatio = vp.getViewportAspectRatio();
#endif
if (box.isEmpty())
return;
@@ -2768,12 +2766,10 @@ void View3DInventorViewer::animatedViewAll(int steps, int ms)
if (cam->isOfType(SoOrthographicCamera::getClassTypeId())) {
isOrthographic = true;
height = static_cast<SoOrthographicCamera*>(cam)->height.getValue();
#if (COIN_MAJOR_VERSION >= 3)
if (aspectRatio < 1.0f)
diff = sphere.getRadius() * 2 - height * aspectRatio;
else
#endif
diff = sphere.getRadius() * 2 - height;
diff = sphere.getRadius() * 2 - height;
pos = (box.getCenter() - direction * sphere.getRadius());
}
else if (cam->isOfType(SoPerspectiveCamera::getClassTypeId())) {