diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 7f6e3ceed6..da1ebff985 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -1118,6 +1118,13 @@ void LLAgent::removeRegionChangedCallback(boost::signals2::connection callback)
mRegionChangedSignal.disconnect(callback);
}
+// Aurora sim windlight refresh
+void LLAgent::changeRegion()
+{
+ mRegionChangedSignal();
+}
+//
+
//-----------------------------------------------------------------------------
// inPrelude()
//-----------------------------------------------------------------------------
diff --git a/indra/newview/llagent.h b/indra/newview/llagent.h
index 2379879569..cde89ee0aa 100755
--- a/indra/newview/llagent.h
+++ b/indra/newview/llagent.h
@@ -255,6 +255,9 @@ private:
LLHost getRegionHost() const;
BOOL inPrelude();
+ // 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
diff --git a/indra/newview/llenvmanager.cpp b/indra/newview/llenvmanager.cpp
index 51cffc9d76..56bd2c7ada 100755
--- a/indra/newview/llenvmanager.cpp
+++ b/indra/newview/llenvmanager.cpp
@@ -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();
}
};