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

Method get_current

editor/editor_data.cpp:216–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216ObjectID 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
225int EditorSelectionHistory::get_path_size() const {
226 if (current_elem_idx < 0 || current_elem_idx >= history.size()) {

Callers 15

_dialog_actionMethod · 0.45
_add_to_historyMethod · 0.45
_edit_currentMethod · 0.45
load_sceneMethod · 0.45
_update_atlas_viewMethod · 0.45

Calls 3

sizeMethod · 0.65
ObjectIDClass · 0.50
get_instance_idMethod · 0.45

Tested by 2

_get_current_resourceMethod · 0.36
_files_movedMethod · 0.36