summaryrefslogtreecommitdiffstats
path: root/editor/plugins/curve_editor_plugin.cpp
diff options
context:
space:
mode:
authorLightning_A <aaronjrecord@gmail.com>2021-04-24 14:33:50 -0600
committerLightning_A <aaronjrecord@gmail.com>2021-05-07 14:00:50 -0600
commit97fecd1b69e837a3e3300bb7209ef72131abe599 (patch)
treeebcf4c89c6b5715965840194ed8ccd8bfaf15db5 /editor/plugins/curve_editor_plugin.cpp
parentc3f7465b7efe233eaa8945e41f4029840c1aa153 (diff)
downloadredot-engine-97fecd1b69e837a3e3300bb7209ef72131abe599.tar.gz
Rename "Control" key to "Ctrl" and add "_pressed" suffix to all InputEventWithModifiers properties/methods
Diffstat (limited to 'editor/plugins/curve_editor_plugin.cpp')
-rw-r--r--editor/plugins/curve_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/curve_editor_plugin.cpp b/editor/plugins/curve_editor_plugin.cpp
index db999f50ab..7a38fd2bd5 100644
--- a/editor/plugins/curve_editor_plugin.cpp
+++ b/editor/plugins/curve_editor_plugin.cpp
@@ -168,8 +168,8 @@ void CurveEditor::on_gui_input(const Ref<InputEvent> &p_event) {
// Snap to "round" coordinates when holding Ctrl.
// Be more precise when holding Shift as well.
float snap_threshold;
- if (mm.get_control()) {
- snap_threshold = mm.get_shift() ? 0.025 : 0.1;
+ if (mm.is_ctrl_pressed()) {
+ snap_threshold = mm.is_shift_pressed() ? 0.025 : 0.1;
} else {
snap_threshold = 0.0;
}