aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-09-11 17:25:17 -0700
committerMcCabe Maxsted2009-09-11 17:31:53 -0700
commit187e36f6c51e78b00802af7f1758496993365bf0 (patch)
tree18783fa05fddad2e6900342eb09ca0fede5ac5d8
parentApplied inventory Search menu from Emerald viewer (still ugly) (diff)
downloadmeta-impy-187e36f6c51e78b00802af7f1758496993365bf0.zip
meta-impy-187e36f6c51e78b00802af7f1758496993365bf0.tar.gz
meta-impy-187e36f6c51e78b00802af7f1758496993365bf0.tar.bz2
meta-impy-187e36f6c51e78b00802af7f1758496993365bf0.tar.xz
Applied patch for long distance opensim hypergrid tps (SVC-2491) (Feature currently disabled in OpenSim)
-rw-r--r--ChangeLog.txt7
-rw-r--r--linden/indra/newview/llviewermessage.cpp4
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index c49d154..4df4f11 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -9,7 +9,12 @@
9 modified: newview/llinventoryview.cpp 9 modified: newview/llinventoryview.cpp
10 modified: newview/skins/default/xui/en-us/floater_inventory.xml 10 modified: newview/skins/default/xui/en-us/floater_inventory.xml
11 11
12 12 * Applied patch for long distance opensim hypergrid tps (SVC-2491)
13 (Feature currently disabled in OpenSim)
14
15 modified: linden/indra/newview/llviewermessage.cpp
16
17
132009-09-10 McCabe Maxsted <hakushakukun@gmail.com> 182009-09-10 McCabe Maxsted <hakushakukun@gmail.com>
14 19
15 * Created new toolbar control for windlight presets and options. 20 * Created new toolbar control for windlight presets and options.
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp
index 3fb8e9a..e4de5b4 100644
--- a/linden/indra/newview/llviewermessage.cpp
+++ b/linden/indra/newview/llviewermessage.cpp
@@ -2718,6 +2718,10 @@ void process_agent_movement_complete(LLMessageSystem* msg, void**)
2718 // appropriate. 2718 // appropriate.
2719 LLVector3 shift_vector = regionp->getPosRegionFromGlobal( 2719 LLVector3 shift_vector = regionp->getPosRegionFromGlobal(
2720 gAgent.getRegion()->getOriginGlobal()); 2720 gAgent.getRegion()->getOriginGlobal());
2721 // don't shift objects, if teleporting more than about 1000 sims, as
2722 // for long teleports shifting objects garbles the view at the target region
2723 if (shift_vector.lengthSquared() > 6.5e10f)
2724 shift_vector = LLVector3::zero;
2721 gAgent.setRegion(regionp); 2725 gAgent.setRegion(regionp);
2722 gObjectList.shiftObjects(shift_vector); 2726 gObjectList.shiftObjects(shift_vector);
2723 gAssetStorage->setUpstream(msg->getSender()); 2727 gAssetStorage->setUpstream(msg->getSender());