You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
@@ -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") {
|
if (default_type == "Polygon2D" || default_type == "TouchScreenButton" || default_type == "TextureFrame" || default_type == "Patch9Frame") {
|
||||||
target_pos -= texture_size / 2;
|
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) {
|
bool CanvasItemEditorViewport::_create_instance(Node *parent, String &path, const Point2 &p_point) {
|
||||||
|
|||||||
Reference in New Issue
Block a user