Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2846 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Nov 12, 2004, 9:33:01 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/importer: bug-fix. closed file at the wrong position

Location:
orxonox/trunk/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/importer/framework.cc

    r2837 r2846  
    4646    return 0;
    4747  }
    48   if (argc >=3)
     48  if (argc>=3)
    4949    obj = new Object (argv[1], atof(argv[2]));
    50   else
     50  else if (argc>=2)
    5151    obj = new Object(argv[1]);
    52 
     52  else obj = new Object();
    5353  GLfloat lmodelAmbient[] = {.1, .1, .1, 1.0};
    5454  glLightfv(GL_LIGHT0, GL_DIFFUSE, whiteLight);
  • orxonox/trunk/importer/object.cc

    r2842 r2846  
    2424
    2525  initialize();
    26  
    27   importFile ("");
     26  //  importFile ("");
     27  BoxObject();
    2828
    2929  finalize();
     
    109109  if (verbose >=3)
    110110    printf("finalizing the 3D-Object\n");
    111   OBJ_FILE->close();
    112111  glEnd();
    113112  glEndList();
     
    183182        readVertexTexture(Buffer+3);
    184183      }
    185          
    186 
    187     }
    188  
    189 
    190  
    191  
     184    }
     185  OBJ_FILE->close();
     186
    192187}
    193188
Note: See TracChangeset for help on using the changeset viewer.