Disable freezeOnCull for magic projectile particles

openmw-38
scrawl 9 years ago
parent a8938589f6
commit 6181594251

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

Loading…
Cancel
Save