]> git.mxchange.org Git - flightgear.git/commitdiff
This 'fixes' #613 but partly re-introduces #553.
authorThorstenB <brehmt@gmail.com>
Sun, 29 Jan 2012 09:18:06 +0000 (10:18 +0100)
committerThorstenB <brehmt@gmail.com>
Mon, 6 Feb 2012 21:12:58 +0000 (22:12 +0100)
src/Scenery/tilemgr.cxx

index 3599c3608848b9a052f5b1083f739e6b42511523..e235a8eda68103d24137c1671f29b21f6b9319b8 100644 (file)
@@ -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());