From fb52b013f0e5e3371a1a82e0cbb51d3bbfd18e6d Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Fri, 15 Apr 2011 21:34:44 +0200 Subject: [PATCH 1/3] Clear OSG object cache on scenery reload Scenery reload (menu: Debug-> Reload Scenery) also needs to clear the OSG object cache, otherwise scenery isn't really reloaded from disk. --- src/Scenery/tilemgr.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index 6c19ec5c0..7b59d60b0 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -88,6 +88,8 @@ FGTileMgr::~FGTileMgr() { group->removeChildren(0, group->getNumChildren()); delete _propListener; _propListener = NULL; + // clear OSG cache + osgDB::Registry::instance()->clearObjectCache(); } @@ -122,6 +124,12 @@ void FGTileMgr::reinit() group->removeChildren(0, group->getNumChildren()); tile_cache.init(); + // clear OSG cache, except on initial start-up + if (state != Start) + { + osgDB::Registry::instance()->clearObjectCache(); + } + state = Inited; previous_bucket.make_bad(); From 0c500d4fc425d27c63d5505a770cdc19b2c46264 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sat, 16 Apr 2011 10:53:09 +0200 Subject: [PATCH 2/3] Wish #304: MapWidget's center-on-aircraft button should be sticky Thanks to Victhor Foster for the idea. --- src/GUI/MapWidget.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/GUI/MapWidget.cxx b/src/GUI/MapWidget.cxx index b482ada90..cd648fefb 100644 --- a/src/GUI/MapWidget.cxx +++ b/src/GUI/MapWidget.cxx @@ -527,7 +527,6 @@ void MapWidget::draw(int dx, int dy) if (_root->getBoolValue("centre-on-aircraft")) { _projectionCenter = _aircraft; - _root->setBoolValue("centre-on-aircraft", false); } double julianDate = globals->get_time_params()->getJD(); From b36b33f716031ef5933d41a1e5c17c6be3e54c28 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Sat, 16 Apr 2011 11:35:56 +0200 Subject: [PATCH 3/3] Lauri Peltonen: make clearcolor black, so that space is dark instead of gray. --- src/Main/.renderer.cxx.swp | Bin 0 -> 49152 bytes src/Main/renderer.cxx | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 src/Main/.renderer.cxx.swp diff --git a/src/Main/.renderer.cxx.swp b/src/Main/.renderer.cxx.swp new file mode 100644 index 0000000000000000000000000000000000000000..9ebc72734e90afd3e326c450895b3ceb453748b4 GIT binary patch literal 49152 zcmeI537q6fRp%4s8ibMI@PJkS-6K6&HFb6O3=G*ljn#E^IdxH4)pIeV*_r>$%IUnw zqpFLZ85G$;U2#zmbOnZ0M|U`cRad!&b&*4m8@vDkVNm4Kbs5A}VZZN1#Q(~FRo4ut zxSz_IUv=jHALomR7x7-acyVUp^!%dtq_HCzK99^~UiKq*ElysO$vkc%lkq#Xv-0>t zpVeZ!*Xmp-R3>wqBskvfl*TL7N_V_cuT?jCRlnHLXN$#JbG+j>%YMi2jFrxvyKsX0 zA@(V-Pl3Hrpx>*EUiFB~(IbZ^Eq0eG2STV4ni}6xgT0 zJ_YtE@c#`3dhLg0zD{kv4Qzu4SUi}2MWlbG{rxchZGtb@-xu+38{9wyiSr#`4!q0$ zejwkU1}-6CdH*1A18CUa58-q0eG2STV4ni}6xgT0J_YtEa6c(fEbF#^=AohhVEGCvLGz~jO9fDb)9lX)SS1V02W2ag38gGYeBM`7?u z@Mqvp!5hHq!LNengC7Gea3i<@Oo3r=3HV2p5uXO{0{;X2GI$=?24(QWU>tlm_;&DD zC@Veyeh2&_cs4i-*1;MW21DQy@D&sh_ks_CJHa_{4LAh8jMCyQ;Q8Q2Fb*CBK83R6 zP2gui16&Knz-8bNxEJNem%&HC?}1+d&jA%M4~D_R!T&~S@-FaF@Dgx4Xo4HSQ@{c6 zVDLF~B7Y4&4BiOt051bKfK_k+e3|zA5_k=GHnk>xY2Y$K%uLR&%*iwPtVF z+u*Nvwb$(xd$m%bRP6SShi^}0<+(rE>vd{p`aOT>SV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ouz$vb=Ep9G&A^fZAq{&~$Abiqfx!5ueg~IlHdu Ho#X!jzAm5x literal 0 HcmV?d00001 diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index d1fa367cf..c88003f1e 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -613,11 +613,11 @@ FGRenderer::update( bool refresh_camera_settings ) { if ( fgGetBool("/sim/rendering/textures") ) { SGVec4f clearColor(l->adj_fog_color()); - camera->setClearColor(toOsg(clearColor)); + camera->setClearColor(osg::Vec4(0.0, 0.0, 0.0, 1.0)); } } else { SGVec4f clearColor(l->sky_color()); - camera->setClearColor(toOsg(clearColor)); + camera->setClearColor(osg::Vec4(0.0, 0.0, 0.0, 1.0)); } // update fog params if visibility has changed