From 25c7ea0532b6316639b7efbbfb9f10bfe7e38635 Mon Sep 17 00:00:00 2001 From: "niel@mint-32" Date: Thu, 21 Nov 2013 00:02:15 +0000 Subject: storm-1831 Replacing old region changed callback setup with the shiny new one. --- indra/newview/llpreviewscript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp index c662343238..362836b5b9 100755 --- a/indra/newview/llpreviewscript.cpp +++ b/indra/newview/llpreviewscript.cpp @@ -410,7 +410,7 @@ BOOL LLScriptEdCore::postBuild() // Intialise keyword highlighting for the current simulator's version of LSL onRegionChangeInitialiseKeywords(); // Set up a callback for region changes, so that highlighting is updated to the new region's version of LSL - LLEnvManagerNew::getInstance()->setRegionChangeCallback(boost::bind(&LLScriptEdCore::onRegionChangeInitialiseKeywords, this)); + gAgent.addRegionChangedCallback(boost::bind(&LLScriptEdCore::onRegionChangeInitialiseKeywords, this)); return TRUE; } -- cgit v1.2.3