summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 36f768d)
raw | patch | inline | side by side (parent: 36f768d)
author | cilix42 <cilix42@users.sourceforge.net> | |
Mon, 6 Aug 2007 08:17:03 +0000 (08:17 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Mon, 6 Aug 2007 08:17:03 +0000 (08:17 +0000) |
src/box3d.cpp | patch | blob | history |
diff --git a/src/box3d.cpp b/src/box3d.cpp
index e4bda5d9c5a4a30ed0830b9f6badacf151e465f3..e445ba3d06cfe2092b8456a11644f7fd78472863 100644 (file)
--- a/src/box3d.cpp
+++ b/src/box3d.cpp
persp->set_vanishing_point (Box3D::X, g_ascii_strtod (vps[0], NULL), g_ascii_strtod (vps[1], NULL),
g_ascii_strtod (vps[2], NULL), g_ascii_strtod (vps[3], NULL),
- Box3D::VP_FINITE);
+ strcmp (vps[4], "finite") == 0 ? Box3D::VP_FINITE : Box3D::VP_INFINITE);
persp->set_vanishing_point (Box3D::Y, g_ascii_strtod (vps[5], NULL), g_ascii_strtod (vps[6], NULL),
g_ascii_strtod (vps[7], NULL), g_ascii_strtod (vps[8], NULL),
- Box3D::VP_FINITE);
+ strcmp (vps[9], "finite") == 0 ? Box3D::VP_FINITE : Box3D::VP_INFINITE);
persp->set_vanishing_point (Box3D::Z, g_ascii_strtod (vps[10], NULL), g_ascii_strtod (vps[11], NULL),
g_ascii_strtod (vps[12], NULL), g_ascii_strtod (vps[13], NULL),
- Box3D::VP_FINITE);
+ strcmp (vps[14], "finite") == 0 ? Box3D::VP_FINITE : Box3D::VP_INFINITE);
// update the other boxes linked to the same perspective
persp->reshape_boxes (Box3D::XYZ);