diff options
| author | Pedro J. Estébanez | 2017-03-22 21:18:47 +0100 |
|---|---|---|
| committer | Pedro J. Estébanez | 2017-03-22 21:18:47 +0100 |
| commit | 2c2c48ffb3bd381d09d1e0e4389a2b86255fe20f (patch) | |
| tree | 9c7dd950303a39941256a9e247215d1c4bcdd5e0 /editor/editor_settings.cpp | |
| parent | 9c75b9dddf18abf315f62caa6745daa05d4adbaf (diff) | |
| download | godot-2c2c48ffb3bd381d09d1e0e4389a2b86255fe20f.tar.gz godot-2c2c48ffb3bd381d09d1e0e4389a2b86255fe20f.tar.zst godot-2c2c48ffb3bd381d09d1e0e4389a2b86255fe20f.zip | |
Implement warped mouse panning for 2D & 3D editors
Enabled by default as in Blender, but can be disabled separately for 2D & 3D;
the core functionality is in Input so this could be reused or even exposed to scripts in the future
Diffstat (limited to 'editor/editor_settings.cpp')
| -rw-r--r-- | editor/editor_settings.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 8c2ba58a4..eb0e0331f 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -582,6 +582,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) { hints["3d_editor/zoom_modifier"] = PropertyInfo(Variant::INT, "3d_editor/zoom_modifier", PROPERTY_HINT_ENUM, "None,Shift,Alt,Meta,Ctrl"); set("3d_editor/emulate_numpad", false); set("3d_editor/emulate_3_button_mouse", false); + set("3d_editor/warped_mouse_panning", true); set("2d_editor/bone_width", 5); set("2d_editor/bone_color1", Color(1.0, 1.0, 1.0, 0.9)); @@ -591,6 +592,8 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) { set("2d_editor/keep_margins_when_changing_anchors", false); + set("2d_editor/warped_mouse_panning", true); + set("game_window_placement/rect", 0); hints["game_window_placement/rect"] = PropertyInfo(Variant::INT, "game_window_placement/rect", PROPERTY_HINT_ENUM, "Default,Centered,Custom Position,Force Maximized,Force Full Screen"); String screen_hints = TTR("Default (Same as Editor)"); |
