| 149 | } |
| 150 | |
| 151 | void 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 | |
| 161 | int EditorSelectionHistory::get_history_len() { |
| 162 | return history.size(); |
no test coverage detected