summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindra/newview/llpreviewscript.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index 19aab8f383..c662343238 100755
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -407,8 +407,11 @@ BOOL LLScriptEdCore::postBuild()
initMenu();
+ // Intialise keyword highlighting for the current simulator's version of LSL
onRegionChangeInitialiseKeywords();
- //LLEnvManagerNew::getInstance()->setRegionChangeCallback(boost::bind(&LLScriptEdCore::onRegionChangeInitialiseKeywords(), this));
+ // 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));
+
return TRUE;
}