| 231 | } |
| 232 | |
| 233 | ObjectID EditorSelectionHistory::get_path_object(int p_index) const { |
| 234 | if (current_elem_idx < 0 || current_elem_idx >= history.size()) { |
| 235 | return ObjectID(); |
| 236 | } |
| 237 | |
| 238 | ERR_FAIL_INDEX_V(p_index, history[current_elem_idx].path.size(), ObjectID()); |
| 239 | |
| 240 | Object *obj = ObjectDB::get_instance(history[current_elem_idx].path[p_index].object); |
| 241 | return obj ? obj->get_instance_id() : ObjectID(); |
| 242 | } |
| 243 | |
| 244 | String EditorSelectionHistory::get_path_property(int p_index) const { |
| 245 | if (current_elem_idx < 0 || current_elem_idx >= history.size()) { |
no test coverage detected