Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11930 for code


Ignore:
Timestamp:
May 3, 2018, 2:47:26 PM (6 years ago)
Author:
mdedial
Message:

Fix a bug that was trying to load mesh files with empty filenames.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Masterserver_FS18/src/orxonox/graphics/Model.cc

    r11889 r11930  
    126126                this->detachOgreObject(this->mesh_.getEntity());
    127127
    128             this->mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_);
     128                // Refuse to set empty mesh sources
     129                if (this->meshSrc_ != "")
     130                    this->mesh_.setMeshSource(this->getScene()->getSceneManager(), this->meshSrc_);
    129131
    130132            if (this->mesh_.getEntity())
Note: See TracChangeset for help on using the changeset viewer.