1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-29 08:15:35 +00:00

Set render queue group for projectiles (Fixes #1829)

This commit is contained in:
scrawl 2014-08-18 15:32:52 +02:00
parent 888a53af04
commit 03cb66c342

View file

@ -20,6 +20,8 @@
#include "../mwmechanics/spellcasting.hpp"
#include "../mwrender/effectmanager.hpp"
#include "../mwrender/animation.hpp"
#include "../mwrender/renderconst.hpp"
#include "../mwsound/sound.hpp"
@ -41,6 +43,9 @@ namespace MWWorld
if(state.mObject->mControllers[i].getSource().isNull())
state.mObject->mControllers[i].setSource(Ogre::SharedPtr<MWRender::EffectAnimationTime> (new MWRender::EffectAnimationTime()));
}
MWRender::Animation::setRenderProperties(state.mObject, MWRender::RV_Misc,
MWRender::RQG_Main, MWRender::RQG_Alpha, 0.f, false, NULL);
}
void ProjectileManager::update(NifOgre::ObjectScenePtr object, float duration)