From 33c63a6d7290b13f1266b5fa306a841575f1cee7 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sun, 29 Jan 2012 10:18:06 +0100 Subject: [PATCH] This 'fixes' #613 but partly re-introduces #553. --- src/Scenery/tilemgr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); -- 2.39.5