MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / resolveObjectLink

Method resolveObjectLink

Source/ThirdParty/OpenFBX/ofbx.cpp:4015–4032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4013
4014
4015Object* Object::resolveObjectLink(int idx) const
4016{
4017 u64 id = 0;
4018 toObjectID(scene, ((Element&)element).first_property, &id);
4019 for (auto& connection : scene.m_connections)
4020 {
4021 if (connection.to_object == id && connection.from_object != 0)
4022 {
4023 Object* obj = scene.m_object_map.find(connection.from_object)->second.object;
4024 if (obj)
4025 {
4026 if (idx == 0) return obj;
4027 --idx;
4028 }
4029 }
4030 }
4031 return nullptr;
4032}
4033
4034
4035Object* Object::resolveObjectLink(Object::Type type, const char* property, int idx) const

Callers 2

ProcessNodesFunction · 0.45
ImportMeshFunction · 0.45

Calls 3

toObjectIDFunction · 0.85
findMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected