aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-05-17 17:51:21 -0700
committerJacek Antonelli2010-06-19 02:40:55 -0500
commit9f3912b276787df78dbd7ffd6f0b6e27feadfc60 (patch)
treeb8f8cef8b6df820017b9fc6b86de0b72e1b06eaa /linden
parentSupport 'tiny prims' (resizing down to 0.001m) on OpenSim, made sure the tool... (diff)
downloadmeta-impy-9f3912b276787df78dbd7ffd6f0b6e27feadfc60.zip
meta-impy-9f3912b276787df78dbd7ffd6f0b6e27feadfc60.tar.gz
meta-impy-9f3912b276787df78dbd7ffd6f0b6e27feadfc60.tar.bz2
meta-impy-9f3912b276787df78dbd7ffd6f0b6e27feadfc60.tar.xz
Ported IgnoreSimulatorCameraConstraints setting from Emerald
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/newview/app_settings/settings.xml11
-rw-r--r--linden/indra/newview/llviewermessage.cpp4
2 files changed, 15 insertions, 0 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 19ad234..b883231 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -157,6 +157,17 @@
157 <key>Value</key> 157 <key>Value</key>
158 <integer>0</integer> 158 <integer>0</integer>
159 </map> 159 </map>
160 <key>IgnoreSimulatorCameraConstraints</key>
161 <map>
162 <key>Comment</key>
163 <string>Ignores the 'push' the simulator applies to your camera to keep it out of objects.(Requires restart to work correctly)</string>
164 <key>Persist</key>
165 <integer>1</integer>
166 <key>Type</key>
167 <string>Boolean</string>
168 <key>Value</key>
169 <integer>1</integer>
170 </map>
160 <key>LastGrass</key> 171 <key>LastGrass</key>
161 <map> 172 <map>
162 <key>Comment</key> 173 <key>Comment</key>
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp
index c6f93ee..1e185e6 100644
--- a/linden/indra/newview/llviewermessage.cpp
+++ b/linden/indra/newview/llviewermessage.cpp
@@ -4324,6 +4324,10 @@ void process_avatar_appearance(LLMessageSystem *mesgsys, void **user_data)
4324 4324
4325void process_camera_constraint(LLMessageSystem *mesgsys, void **user_data) 4325void process_camera_constraint(LLMessageSystem *mesgsys, void **user_data)
4326{ 4326{
4327 if(gSavedSettings.getBOOL("IgnoreSimulatorCameraConstraints"))
4328 {
4329 return;
4330 }
4327 LLVector4 cameraCollidePlane; 4331 LLVector4 cameraCollidePlane;
4328 mesgsys->getVector4Fast(_PREHASH_CameraCollidePlane, _PREHASH_Plane, cameraCollidePlane); 4332 mesgsys->getVector4Fast(_PREHASH_CameraCollidePlane, _PREHASH_Plane, cameraCollidePlane);
4329 4333