mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
Set render queue group for projectiles (Fixes #1829)
This commit is contained in:
parent
888a53af04
commit
03cb66c342
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,8 @@
|
||||||
#include "../mwmechanics/spellcasting.hpp"
|
#include "../mwmechanics/spellcasting.hpp"
|
||||||
|
|
||||||
#include "../mwrender/effectmanager.hpp"
|
#include "../mwrender/effectmanager.hpp"
|
||||||
|
#include "../mwrender/animation.hpp"
|
||||||
|
#include "../mwrender/renderconst.hpp"
|
||||||
|
|
||||||
#include "../mwsound/sound.hpp"
|
#include "../mwsound/sound.hpp"
|
||||||
|
|
||||||
|
@ -41,6 +43,9 @@ namespace MWWorld
|
||||||
if(state.mObject->mControllers[i].getSource().isNull())
|
if(state.mObject->mControllers[i].getSource().isNull())
|
||||||
state.mObject->mControllers[i].setSource(Ogre::SharedPtr<MWRender::EffectAnimationTime> (new MWRender::EffectAnimationTime()));
|
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)
|
void ProjectileManager::update(NifOgre::ObjectScenePtr object, float duration)
|
||||||
|
|
Loading…
Reference in a new issue