From: ThorstenB Date: Sun, 29 Jan 2012 09:18:06 +0000 (+0100) Subject: This 'fixes' #613 but partly re-introduces #553. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=33c63a6d7290b13f1266b5fa306a841575f1cee7;p=flightgear.git This 'fixes' #613 but partly re-introduces #553. --- diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index 3599c3608..e235a8eda 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -257,8 +257,8 @@ FGTileMgr::loadTileModel(const string& modelPath, bool cacheModel) * so we can run the Nasal stuff in the main thread. */ result= - SGModelLib::loadDeferredModel(fullPath.str(), globals->get_props()/*, - new FGNasalModelData*/); + SGModelLib::loadDeferredModel(fullPath.str(), globals->get_props(), + _disableNasalHooks->getBoolValue() ? NULL : new FGNasalModelData); } } catch (const sg_io_exception& exc) { string m(exc.getMessage());