Compile fix

meow-7.2.2
Ansariel 2014-02-07 20:42:21 +01:00
parent 7b2cc02863
commit 1db06992f4
3 changed files with 13 additions and 1 deletions

View File

@ -1118,6 +1118,13 @@ void LLAgent::removeRegionChangedCallback(boost::signals2::connection callback)
mRegionChangedSignal.disconnect(callback);
}
// <FS:Ansariel> Aurora sim windlight refresh
void LLAgent::changeRegion()
{
mRegionChangedSignal();
}
// </FS:Ansariel>
//-----------------------------------------------------------------------------
// inPrelude()
//-----------------------------------------------------------------------------

View File

@ -255,6 +255,9 @@ private:
LLHost getRegionHost() const;
BOOL inPrelude();
// <FS:Ansariel> Aurora sim windlight refresh
void changeRegion();
/**
* Register a boost callback to be called when the agent changes regions
* Note that if you need to access a capability for the region, you may need to wait

View File

@ -777,7 +777,9 @@ class WindLightRefresh : public LLHTTPNode
}
llinfos << "Windlight Refresh , interpolate:" << env->mInterpNextChangeMessage << llendl;
env->requestRegionSettings();
env->mRegionChangeSignal();
// Ansa: This cause the windlight editor and others to update since the windlight has changed!
gAgent.changeRegion();
}
};