mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:23:51 +00:00
Fix setting up active controllers
This commit is contained in:
parent
634b0fd067
commit
7e2995bc2f
1 changed files with 3 additions and 1 deletions
|
@ -155,6 +155,8 @@ void Animation::addObjectList(Ogre::SceneNode *node, const std::string &model, b
|
|||
if(objlist.mControllers[i].getSource().isNull())
|
||||
objlist.mControllers[i].setSource(mAnimationBaseValuePtr);
|
||||
}
|
||||
|
||||
mActiveCtrls.insert(mActiveCtrls.end(), objlist.mControllers.begin(), objlist.mControllers.end());
|
||||
}
|
||||
|
||||
void Animation::setRenderProperties(const NifOgre::ObjectList &objlist, Ogre::uint32 visflags, Ogre::uint8 solidqueue, Ogre::uint8 transqueue)
|
||||
|
@ -231,7 +233,7 @@ void Animation::updateActiveControllers()
|
|||
{
|
||||
for(obj = mObjects.begin();obj != mObjects.end();obj++)
|
||||
{
|
||||
if((obj->mActiveLayers&(1<<layer)))
|
||||
if((obj->mActiveLayers&(1<<nextlayer)))
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue