Browse Source

Updates for rebase

Josh Engebretson 9 years ago
parent
commit
96bc4a13fb
1 changed files with 5 additions and 13 deletions
  1. 5 13
      Source/AtomicEditor/Editors/SceneEditor3D/SceneView3D.cpp

+ 5 - 13
Source/AtomicEditor/Editors/SceneEditor3D/SceneView3D.cpp

@@ -221,14 +221,6 @@ void SceneView3D::MoveCamera(float timeStep)
     bool zooming = GetZooming();
     bool changingCameraSpeed = GetChangingCameraSpeed();
 
-    // Movement speed as world units per second
-    float MOVE_SPEED = 20.0f;
-    // Mouse sensitivity as degrees per pixel
-    const float MOUSE_SENSITIVITY = 0.2f;
-
-    if (shiftDown)
-        MOVE_SPEED *= 3.0f;
-
     // Use this frame's mouse motion to adjust camera node yaw and pitch. Clamp the pitch between -90 and 90 degrees
     if ((mouseInView && input->GetMouseButtonDown(MOUSEB_RIGHT)) || orbitting)
     {
@@ -650,13 +642,13 @@ bool SceneView3D::OnEvent(const TBWidgetEvent &ev)
     }
     if (ev.type == EVENT_TYPE_KEY_DOWN)
     {
-        SelectView();
-    }
+        Input* input = GetSubsystem<Input>();
 
-    Input* input = GetSubsystem<Input>();
+        if (input->GetKeyPress(KEY_G))
+            gridEnabled_ = !gridEnabled_;
 
-    if (input->GetKeyPress(KEY_G))
-        gridEnabled_ = !gridEnabled_;
+        SelectView();
+    }
 
     return sceneEditor_->OnEvent(ev);
 }