Text archives Help
- From:
- To:
- Subject: [Manta] r2326 - trunk/scenes
- Date: Mon, 15 Sep 2008 13:36:30 -0600 (MDT)
Author: aek
Date: Mon Sep 15 13:36:30 2008
New Revision: 2326
Modified:
trunk/scenes/cubeWorld.cc
Log:
Small fix for cube scene; the initial version created the last box twice.
Modified: trunk/scenes/cubeWorld.cc
==============================================================================
--- trunk/scenes/cubeWorld.cc (original)
+++ trunk/scenes/cubeWorld.cc Mon Sep 15 13:36:30 2008
@@ -68,7 +68,7 @@
Group* group = new Group();
Material *flat = new Lambertian( Color::white() * 0.8 );
ifstream input( file_name.c_str() );
- while( input )
+ while( input.good() && !input.eof() )
{
Vector center, length, rotations;
input >> center >> length >> rotations;
- [Manta] r2326 - trunk/scenes, aek, 09/15/2008
Archive powered by MHonArc 2.6.16.