aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/animation_blend_space_editor.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2018-06-25 16:21:57 -0300
committerJuan Linietsky2018-06-25 16:22:41 -0300
commit4f5a7ebaecfcf00cf1e5c4af4b20034f0dcecd29 (patch)
tree17eb49e6fd511e7a9e62d7111ba72041afeb9f31 /editor/plugins/animation_blend_space_editor.cpp
parentc45a8a574a7d7ead577a7668cc562ece75733266 (diff)
downloadgodot-4f5a7ebaecfcf00cf1e5c4af4b20034f0dcecd29.tar.gz
godot-4f5a7ebaecfcf00cf1e5c4af4b20034f0dcecd29.tar.zst
godot-4f5a7ebaecfcf00cf1e5c4af4b20034f0dcecd29.zip
Diffstat (limited to 'editor/plugins/animation_blend_space_editor.cpp')
-rw-r--r--editor/plugins/animation_blend_space_editor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/plugins/animation_blend_space_editor.cpp b/editor/plugins/animation_blend_space_editor.cpp
index 9118211bf..96093db00 100644
--- a/editor/plugins/animation_blend_space_editor.cpp
+++ b/editor/plugins/animation_blend_space_editor.cpp
@@ -203,7 +203,7 @@ void AnimationNodeBlendSpaceEditor::_blend_space_gui_input(const Ref<InputEvent>
blend_pos *= (blend_space->get_max_space() - blend_space->get_min_space());
blend_pos += blend_space->get_min_space();
- blend_space->set_blend_pos(blend_pos);
+ blend_space->set_blend_position(blend_pos);
blend_space_draw->update();
}
@@ -237,7 +237,7 @@ void AnimationNodeBlendSpaceEditor::_blend_space_gui_input(const Ref<InputEvent>
blend_pos *= (blend_space->get_max_space() - blend_space->get_min_space());
blend_pos += blend_space->get_min_space();
- blend_space->set_blend_pos(blend_pos);
+ blend_space->set_blend_position(blend_pos);
blend_space_draw->update();
}
}
@@ -490,13 +490,13 @@ void AnimationNodeBlendSpaceEditor::_blend_space_draw() {
color.a *= 0.5;
}
- Vector2 point = blend_space->get_blend_pos();
+ Vector2 point = blend_space->get_blend_position();
point = (point - blend_space->get_min_space()) / (blend_space->get_max_space() - blend_space->get_min_space());
point *= s;
point.y = s.height - point.y;
if (blend_space->get_triangle_count()) {
- Vector2 closest = blend_space->get_closest_point(blend_space->get_blend_pos());
+ Vector2 closest = blend_space->get_closest_point(blend_space->get_blend_position());
closest = (closest - blend_space->get_min_space()) / (blend_space->get_max_space() - blend_space->get_min_space());
closest *= s;
closest.y = s.height - closest.y;