forked from teamnwah/openmw-tes3coop
Fix bug of Animation::mSkeleton not being assigned
This bug resulted in deactivating a Skeleton not working properly for creatures (that are out of processing range), therefore reduced performance.
This commit is contained in:
parent
7a79ebb713
commit
132ac6001b
1 changed files with 3 additions and 0 deletions
|
@ -1192,6 +1192,9 @@ namespace MWRender
|
|||
mObjectRoot->addChild(created);
|
||||
mInsert->addChild(mObjectRoot);
|
||||
}
|
||||
osg::ref_ptr<SceneUtil::Skeleton> skel = dynamic_cast<SceneUtil::Skeleton*>(mObjectRoot.get());
|
||||
if (skel)
|
||||
mSkeleton = skel.get();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue