aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins/collision_shape_2d_editor_plugin.cpp
diff options
context:
space:
mode:
authorAndreas Haas2017-06-03 12:47:54 +0200
committerGitHub2017-06-03 12:47:54 +0200
commit69bec86028f87307e549d7a2f49bbb7e2b1f3771 (patch)
tree30316ffea9d6321c6b8292a02b6db3dac9cd1053 /editor/plugins/collision_shape_2d_editor_plugin.cpp
parent5a6d4971e13157cc5f0de199de7f6d257070fc66 (diff)
parent9bc534896135322a578118f433f0dc6265839082 (diff)
downloadgodot-69bec86028f87307e549d7a2f49bbb7e2b1f3771.tar.gz
godot-69bec86028f87307e549d7a2f49bbb7e2b1f3771.tar.zst
godot-69bec86028f87307e549d7a2f49bbb7e2b1f3771.zip
Merge pull request #9031 from Hinsbart/inputevent_pos
InputEvent: Renamed "pos" property to "position"
Diffstat (limited to 'editor/plugins/collision_shape_2d_editor_plugin.cpp')
-rw-r--r--editor/plugins/collision_shape_2d_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/collision_shape_2d_editor_plugin.cpp b/editor/plugins/collision_shape_2d_editor_plugin.cpp
index e2184c615..9a6ee8153 100644
--- a/editor/plugins/collision_shape_2d_editor_plugin.cpp
+++ b/editor/plugins/collision_shape_2d_editor_plugin.cpp
@@ -322,7 +322,7 @@ bool CollisionShape2DEditor::forward_gui_input(const Ref<InputEvent> &p_event) {
Transform2D gt = canvas_item_editor->get_canvas_transform() * node->get_global_transform();
- Point2 gpoint(mb->get_pos().x, mb->get_pos().y);
+ Point2 gpoint(mb->get_position().x, mb->get_position().y);
if (mb->get_button_index() == BUTTON_LEFT) {
if (mb->is_pressed()) {
@@ -368,7 +368,7 @@ bool CollisionShape2DEditor::forward_gui_input(const Ref<InputEvent> &p_event) {
return false;
}
- Point2 gpoint = mm->get_pos();
+ Point2 gpoint = mm->get_position();
Point2 cpoint = canvas_item_editor->get_canvas_transform().affine_inverse().xform(gpoint);
cpoint = canvas_item_editor->snap_point(cpoint);
cpoint = node->get_global_transform().affine_inverse().xform(cpoint);