#ttp 331634 - EDITOR: PERSONA: Unable to change camera speed in Persona

#summary Fixed not being able to set camera movement speed in toolkit viewports
#change Moved anything to do with camera speed in the level editor viewport settings into the level editor viewport client and added a transient camera speed setting to all other viewports.
#proj Editor
#branch UE4
#reviewedby Thomas.Sarkanen, Matt.Kuhlenschmidt

[CL 2054156 by Andrew Rodham in Main branch]
This commit is contained in:
Andrew Rodham
2014-04-23 20:13:24 -04:00
committed by UnrealBot
parent d949b542bb
commit d1592d7dd3
6 changed files with 76 additions and 34 deletions

View File

@@ -587,7 +587,7 @@ bool UGeomModifier_Edit::InputDelta(FLevelEditorViewportClient* InViewportClient
// Only apply camera speed modifiers to the drag if we aren't zooming in an ortho viewport.
if( !InViewportClient->IsOrtho() || !(InViewport->KeyState(EKeys::LeftMouseButton) && InViewport->KeyState(EKeys::RightMouseButton)) )
{
const float CameraSpeed = InViewportClient->GetCameraSpeed(GetDefault<ULevelEditorViewportSettings>()->CameraSpeed);
const float CameraSpeed = InViewportClient->GetCameraSpeed();
CameraDelta *= CameraSpeed;
}