Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 12, 2006, 2:16:24 PM (18 years ago)
Author:
bensch
Message:

orxonox/std:: removed two seg-fault bugs… but strangely some models are not loaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/world_entities/world_entity.cc

    r7216 r7217  
    118118 * @param fileName the name of the model to load
    119119 * @param scaling the Scaling of the model
    120  *
    121  * @todo fix this, so it only has one loadModel-Function.
    122 */
     120 */
    123121void WorldEntity::loadModel(const std::string& fileName, float scaling, unsigned int modelNumber)
    124122{
     
    152150      if (loadedModel != NULL)
    153151        this->setModel(dynamic_cast<Model*>(loadedModel), modelNumber);
     152      else
     153        PRINTF(1)("OBJ-File %s not found.\n", fileName.c_str());
    154154
    155155      if( modelNumber == 0)
Note: See TracChangeset for help on using the changeset viewer.