Skip to content
Snippets Groups Projects
Commit adb3959b authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Readd setting to disable camera object collision

parent 7927706a
No related branches found
No related tags found
No related merge requests found
...@@ -211,6 +211,17 @@ ...@@ -211,6 +211,17 @@
<key>Value</key> <key>Value</key>
<string>/tp2cam</string> <string>/tp2cam</string>
</map> </map>
<key>AlchemyLookAtShow</key>
<map>
<key>Comment</key>
<string>If true, avatar look at beacons will be displayed</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>AlchemyDisableEffectSpiral</key> <key>AlchemyDisableEffectSpiral</key>
<map> <map>
<key>Comment</key> <key>Comment</key>
......
...@@ -1799,7 +1799,8 @@ LLVector3d LLAgentCamera::calcCameraPositionTargetGlobal(BOOL *hit_limit) ...@@ -1799,7 +1799,8 @@ LLVector3d LLAgentCamera::calcCameraPositionTargetGlobal(BOOL *hit_limit)
local_camera_offset = gAgent.getFrameAgent().rotateToAbsolute( local_camera_offset ); local_camera_offset = gAgent.getFrameAgent().rotateToAbsolute( local_camera_offset );
} }
if (!mCameraCollidePlane.isExactlyZero() && (!isAgentAvatarValid() || !gAgentAvatarp->isSitting())) static LLCachedControl<bool> disable_camera_collision(gSavedSettings, "AlchemyDisableCameraCollision", false);
if (!disable_camera_collision && !mCameraCollidePlane.isExactlyZero() && (!isAgentAvatarValid() || !gAgentAvatarp->isSitting()))
{ {
LLVector3 plane_normal; LLVector3 plane_normal;
plane_normal.setVec(mCameraCollidePlane.mV); plane_normal.setVec(mCameraCollidePlane.mV);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment