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

Method get_path_object

editor/editor_data.cpp:233–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233ObjectID 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
244String EditorSelectionHistory::get_path_property(int p_index) const {
245 if (current_elem_idx < 0 || current_elem_idx >= history.size()) {

Callers 6

get_base_nodeMethod · 0.80
update_keyingMethod · 0.80
insert_value_keyMethod · 0.80
_about_to_showMethod · 0.80
update_pathMethod · 0.80

Calls 3

sizeMethod · 0.65
ObjectIDClass · 0.50
get_instance_idMethod · 0.45

Tested by

no test coverage detected