MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / replace_object

Method replace_object

editor/editor_data.cpp:151–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void EditorSelectionHistory::replace_object(ObjectID p_old_object, ObjectID p_new_object) {
152 for (HistoryElement &element : history) {
153 for (int index = 0; index < element.path.size(); index++) {
154 if (element.path[index].object == p_old_object) {
155 element.path.write[index].object = p_new_object;
156 }
157 }
158 }
159}
160
161int EditorSelectionHistory::get_history_len() {
162 return history.size();

Callers 1

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected