Text archives Help
- From: "Thiago Ize" <thiago@sci.utah.edu>
- To: manta@sci.utah.edu
- Subject: [Manta] r2145 - trunk/scenes
- Date: Mon, 10 Mar 2008 12:30:35 -0600 (MDT)
Author: thiago
Date: Mon Mar 10 12:30:34 2008
New Revision: 2145
Modified:
trunk/scenes/triangleSceneViewer.cc
Log:
My ifstream skills suck. Hopefully this is the
correct way to read in data. This might fix a
bug with the last frame in a .anim file being
repeated twice.
Modified: trunk/scenes/triangleSceneViewer.cc
==============================================================================
--- trunk/scenes/triangleSceneViewer.cc (original)
+++ trunk/scenes/triangleSceneViewer.cc Mon Mar 10 12:30:34 2008
@@ -155,7 +155,7 @@
fileNames.clear();
//read in data from modelName and
ifstream in(modelName.c_str());
- while (in) {
+ while (in.good()) {
in >> modelName;
fileNames.push_back(modelName);
}
- [Manta] r2145 - trunk/scenes, Thiago Ize, 03/10/2008
Archive powered by MHonArc 2.6.16.