Introducing SGIgnoreSimulatorCameraConstraints
This commit is contained in:
@@ -9,6 +9,17 @@
|
||||
<string>settings_rlv.xml</string>
|
||||
</array>
|
||||
|
||||
<key>SGIgnoreSimulatorCameraConstraints</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Don't let the simulator push your camera around</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>SGAllowRiggedMeshSelection</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
||||
@@ -1844,7 +1844,10 @@ LLVector3d LLAgentCamera::calcCameraPositionTargetGlobal(BOOL *hit_limit)
|
||||
local_camera_offset = gAgent.getFrameAgent().rotateToAbsolute( local_camera_offset );
|
||||
}
|
||||
|
||||
if (!mCameraCollidePlane.isExactlyZero() && (!isAgentAvatarValid() || !gAgentAvatarp->isSitting()))
|
||||
if ( !mCameraCollidePlane.isExactlyZero()
|
||||
&& !gSavedSettings.getBOOL("SGIgnoreSimulatorCameraConstraints")
|
||||
&& isAgentAvatarValid()
|
||||
&& !gAgentAvatarp->isSitting())
|
||||
{
|
||||
LLVector3 plane_normal;
|
||||
plane_normal.setVec(mCameraCollidePlane.mV);
|
||||
|
||||
Reference in New Issue
Block a user