You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Rename remove() to remove_at() when removing by index
This commit is contained in:
committed by
Aaron Record
parent
5efe80f308
commit
e078f970db
@@ -658,7 +658,7 @@ void CanvasItemEditor::_get_canvas_items_at_pos(const Point2 &p_pos, Vector<_Sel
|
||||
|
||||
//Remove the item if invalid
|
||||
if (!canvas_item || duplicate || (canvas_item != scene && canvas_item->get_owner() != scene && !scene->is_editable_instance(canvas_item->get_owner())) || (!p_allow_locked && _is_node_locked(canvas_item))) {
|
||||
r_items.remove(i);
|
||||
r_items.remove_at(i);
|
||||
i--;
|
||||
} else {
|
||||
r_items.write[i].item = canvas_item;
|
||||
@@ -1045,7 +1045,7 @@ bool CanvasItemEditor::_gui_input_rulers_and_guides(const Ref<InputEvent> &p_eve
|
||||
}
|
||||
} else {
|
||||
if (dragged_guide_index >= 0) {
|
||||
vguides.remove(dragged_guide_index);
|
||||
vguides.remove_at(dragged_guide_index);
|
||||
undo_redo->create_action(TTR("Remove Vertical Guide"));
|
||||
if (vguides.is_empty()) {
|
||||
undo_redo->add_do_method(EditorNode::get_singleton()->get_edited_scene(), "remove_meta", "_edit_vertical_guides_");
|
||||
@@ -1078,7 +1078,7 @@ bool CanvasItemEditor::_gui_input_rulers_and_guides(const Ref<InputEvent> &p_eve
|
||||
}
|
||||
} else {
|
||||
if (dragged_guide_index >= 0) {
|
||||
hguides.remove(dragged_guide_index);
|
||||
hguides.remove_at(dragged_guide_index);
|
||||
undo_redo->create_action(TTR("Remove Horizontal Guide"));
|
||||
if (hguides.is_empty()) {
|
||||
undo_redo->add_do_method(EditorNode::get_singleton()->get_edited_scene(), "remove_meta", "_edit_horizontal_guides_");
|
||||
|
||||
Reference in New Issue
Block a user