Browse Source

Merge pull request #22579 from aaronfranke/spatial-nitpicks

Minor nit-picky tweaks in spatial_editor_plugin.cpp
Rémi Verschelde 7 years ago
parent
commit
b073d6c953
1 changed files with 4 additions and 4 deletions
  1. 4 4
      editor/plugins/spatial_editor_plugin.cpp

+ 4 - 4
editor/plugins/spatial_editor_plugin.cpp

@@ -531,12 +531,12 @@ void SpatialEditorViewport::_select_region() {
 
 
 void SpatialEditorViewport::_update_name() {
 void SpatialEditorViewport::_update_name() {
 
 
-	String ortho = orthogonal ? TTR("Orthogonal") : TTR("Perspective");
+	String view_mode = orthogonal ? TTR("Orthogonal") : TTR("Perspective");
 
 
 	if (name != "")
 	if (name != "")
-		view_menu->set_text("[ " + name + " " + ortho + " ]");
+		view_menu->set_text("[ " + name + " " + view_mode + " ]");
 	else
 	else
-		view_menu->set_text("[ " + ortho + " ]");
+		view_menu->set_text("[ " + view_mode + " ]");
 
 
 	view_menu->set_size(Vector2(0, 0)); // resets the button size
 	view_menu->set_size(Vector2(0, 0)); // resets the button size
 }
 }
@@ -1912,7 +1912,7 @@ void SpatialEditorViewport::_nav_orbit(Ref<InputEventWithModifiers> p_event, con
 void SpatialEditorViewport::_nav_look(Ref<InputEventWithModifiers> p_event, const Vector2 &p_relative) {
 void SpatialEditorViewport::_nav_look(Ref<InputEventWithModifiers> p_event, const Vector2 &p_relative) {
 
 
 	// Freelook only works properly in perspective.
 	// Freelook only works properly in perspective.
-	// It technically works too in ortho, but it's awful for a user due to fov being near zero
+	// It could technically work in ortho, but it's terrible for a user due to FOV being a fixed width.
 	if (!orthogonal) {
 	if (!orthogonal) {
 		real_t degrees_per_pixel = EditorSettings::get_singleton()->get("editors/3d/navigation_feel/orbit_sensitivity");
 		real_t degrees_per_pixel = EditorSettings::get_singleton()->get("editors/3d/navigation_feel/orbit_sensitivity");
 		real_t radians_per_pixel = Math::deg2rad(degrees_per_pixel);
 		real_t radians_per_pixel = Math::deg2rad(degrees_per_pixel);