mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 02:06:42 +00:00
Disable freezeOnCull for magic projectile particles
This commit is contained in:
parent
a8938589f6
commit
6181594251
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue