aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/curve_editor_plugin.cpp
diff options
context:
space:
mode:
authorAndreas Haas2017-06-03 10:54:24 +0200
committerAndreas Haas2017-06-03 11:26:39 +0200
commit9bc534896135322a578118f433f0dc6265839082 (patch)
tree30316ffea9d6321c6b8292a02b6db3dac9cd1053 /editor/plugins/curve_editor_plugin.cpp
parent5a6d4971e13157cc5f0de199de7f6d257070fc66 (diff)
downloadgodot-9bc534896135322a578118f433f0dc6265839082.tar.gz
godot-9bc534896135322a578118f433f0dc6265839082.tar.zst
godot-9bc534896135322a578118f433f0dc6265839082.zip
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 6dd94863a..d869d703f 100644
--- a/editor/plugins/curve_editor_plugin.cpp
+++ b/editor/plugins/curve_editor_plugin.cpp
@@ -57,7 +57,7 @@ void CurveTextureEdit::_gui_input(const Ref<InputEvent> &p_event) {
Vector2 size = get_size();
size.y -= font_h;
- Point2 p = Vector2(mb->get_pos().x, mb->get_pos().y) / size;
+ Point2 p = Vector2(mb->get_position().x, mb->get_position().y) / size;
p.y = CLAMP(1.0 - p.y, 0, 1) * (max - min) + min;
grabbed = -1;
grabbing = true;
@@ -111,7 +111,7 @@ void CurveTextureEdit::_gui_input(const Ref<InputEvent> &p_event) {
Vector2 size = get_size();
size.y -= font_h;
- Point2 p = mm->get_pos() / size;
+ Point2 p = mm->get_position() / size;
p.y = CLAMP(1.0 - p.y, 0, 1) * (max - min) + min;
p.x = CLAMP(p.x, 0.0, 1.0);