SH-915 WIP - removed coupling between autopilot flycam and joystick flycam
parent
29ea62811f
commit
d381ec4209
|
|
@ -35,7 +35,6 @@
|
|||
#include "llappviewer.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "llviewercamera.h"
|
||||
#include "llviewerjoystick.h"
|
||||
#include "llsdserialize.h"
|
||||
#include "llsdutil_math.h"
|
||||
|
||||
|
|
@ -259,11 +258,6 @@ void LLAgentPilot::startPlayback()
|
|||
if (mActions.count())
|
||||
{
|
||||
llinfos << "Starting playback, moving to waypoint 0" << llendl;
|
||||
if (getOverrideCamera() &&
|
||||
!LLViewerJoystick::getInstance()->getOverrideCamera())
|
||||
{
|
||||
LLViewerJoystick::getInstance()->toggleFlycam();
|
||||
}
|
||||
gAgent.startAutoPilotGlobal(mActions[0].mTarget);
|
||||
moveCamera();
|
||||
mStarted = FALSE;
|
||||
|
|
|
|||
|
|
@ -4220,16 +4220,13 @@ void LLAppViewer::idle()
|
|||
LLWorld::getInstance()->updateParticles();
|
||||
}
|
||||
|
||||
if (LLViewerJoystick::getInstance()->getOverrideCamera())
|
||||
if (gAgentPilot.isPlaying() && gAgentPilot.getOverrideCamera())
|
||||
{
|
||||
gAgentPilot.moveCamera();
|
||||
}
|
||||
else if (LLViewerJoystick::getInstance()->getOverrideCamera())
|
||||
{
|
||||
if (gAgentPilot.isPlaying() && gAgentPilot.getOverrideCamera())
|
||||
{
|
||||
gAgentPilot.moveCamera();
|
||||
}
|
||||
else
|
||||
{
|
||||
LLViewerJoystick::getInstance()->moveFlycam();
|
||||
}
|
||||
LLViewerJoystick::getInstance()->moveFlycam();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue