diff options
| author | Rémi Verschelde | 2017-03-19 10:01:53 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-19 10:01:53 +0100 |
| commit | 4230b22558516473fe2b11f05436fab13269789c (patch) | |
| tree | fdb3d23f82d67cdb9fae159cb0f6dbdbc904f5d2 /editor/plugins/canvas_item_editor_plugin.cpp | |
| parent | f4f0a6c609e3bda45c64ce9d12ccc58ccc6a9ce7 (diff) | |
| download | godot-4230b22558516473fe2b11f05436fab13269789c.tar.gz godot-4230b22558516473fe2b11f05436fab13269789c.tar.zst godot-4230b22558516473fe2b11f05436fab13269789c.zip | |
Fix cherry-pick mistake using 3.0 method
Bug introduced in a9d8da91b72fe8493f9087563056bb4ade4ca2c7.
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 18ab39fda..b95ef7314 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -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) { |
