Fix cherry-pick mistake using 3.0 method

Bug introduced in a9d8da91b7.
This commit is contained in:
Rémi Verschelde 2017-03-19 10:01:53 +01:00
parent f4f0a6c609
commit 4230b22558

View file

@ -3533,7 +3533,7 @@ void CanvasItemEditorViewport::_create_nodes(Node *parent, Node *child, String &
if (default_type == "Polygon2D" || default_type == "TouchScreenButton" || default_type == "TextureFrame" || default_type == "Patch9Frame") {
target_pos -= texture_size / 2;
}
editor_data->get_undo_redo().add_do_method(child, "set_position", target_pos);
editor_data->get_undo_redo().add_do_method(child, "set_pos", target_pos);
}
bool CanvasItemEditorViewport::_create_instance(Node *parent, String &path, const Point2 &p_point) {