summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewscript.cpp
diff options
context:
space:
mode:
authorIma Mechanique <ima.mechanique@secondlife.com>2013-11-15 23:17:06 +0000
committerIma Mechanique <ima.mechanique@secondlife.com>2013-11-15 23:17:06 +0000
commitdf78262f0ac19c888bb3416da0df37ece77729dc (patch)
treeddacf6b367eedb5782ffaeebbe01b9a2444f3b21 /indra/newview/llpreviewscript.cpp
parentda240d7cf0cccf54a65ca906b612579932aa78e3 (diff)
Fixing the stupid mistake that prevented this from compiling. Thanks to Jonathan Yap for spotting it.
Diffstat (limited to 'indra/newview/llpreviewscript.cpp')
-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;
}