| 214 | } |
| 215 | |
| 216 | ObjectID EditorSelectionHistory::get_current() { |
| 217 | if (current_elem_idx < 0 || current_elem_idx >= history.size()) { |
| 218 | return ObjectID(); |
| 219 | } |
| 220 | |
| 221 | Object *obj = ObjectDB::get_instance(get_history_obj(current_elem_idx)); |
| 222 | return obj ? obj->get_instance_id() : ObjectID(); |
| 223 | } |
| 224 | |
| 225 | int EditorSelectionHistory::get_path_size() const { |
| 226 | if (current_elem_idx < 0 || current_elem_idx >= history.size()) { |