Fix model importer to use precomputed Offset Matrix for skeletal model bones

#1525
This commit is contained in:
Wojtek Figat
2023-10-03 22:30:58 +02:00
parent 4e83a0a757
commit 68a713fb95
3 changed files with 21 additions and 65 deletions

View File

@@ -3538,7 +3538,7 @@ Object* Object::resolveObjectLink(int idx) const
if (connection.to == id && connection.from != 0)
{
Object* obj = scene.m_object_map.find(connection.from)->second.object;
if (obj)
if (obj && obj->is_node && obj != this && connection.type == Scene::Connection::OBJECT_OBJECT)
{
if (idx == 0) return obj;
--idx;