1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-04-01 01:36:44 +00:00

Disable freezeOnCull for magic projectile particles

This commit is contained in:
scrawl 2015-12-05 00:04:23 +01:00
parent a8938589f6
commit 6181594251

View file

@ -7,6 +7,7 @@
#include <components/resource/resourcesystem.hpp> #include <components/resource/resourcesystem.hpp>
#include <components/resource/scenemanager.hpp> #include <components/resource/scenemanager.hpp>
#include <components/sceneutil/controller.hpp> #include <components/sceneutil/controller.hpp>
#include <components/sceneutil/visitor.hpp>
#include "../mwworld/manualref.hpp" #include "../mwworld/manualref.hpp"
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
@ -92,6 +93,9 @@ namespace MWWorld
mResourceSystem->getSceneManager()->createInstance(model, attachTo); mResourceSystem->getSceneManager()->createInstance(model, attachTo);
SceneUtil::DisableFreezeOnCullVisitor disableFreezeOnCullVisitor;
state.mNode->accept(disableFreezeOnCullVisitor);
mParent->addChild(state.mNode); mParent->addChild(state.mNode);
state.mEffectAnimationTime.reset(new MWRender::EffectAnimationTime); state.mEffectAnimationTime.reset(new MWRender::EffectAnimationTime);