mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:23:51 +00:00
Do not use a PartHolder for spell effect node
This commit is contained in:
parent
632045e145
commit
3896a2eba6
2 changed files with 2 additions and 4 deletions
|
@ -624,8 +624,8 @@ namespace MWRender
|
|||
}
|
||||
else
|
||||
{
|
||||
// Remove effect immediately
|
||||
mParams.mObjects.reset();
|
||||
// Hide effect immediately
|
||||
node->setNodeMask(0);
|
||||
mFinished = true;
|
||||
}
|
||||
}
|
||||
|
@ -1686,7 +1686,6 @@ namespace MWRender
|
|||
params.mLoop = loop;
|
||||
params.mEffectId = effectId;
|
||||
params.mBoneName = bonename;
|
||||
params.mObjects = PartHolderPtr(new PartHolder(node));
|
||||
params.mAnimTime = std::shared_ptr<EffectAnimationTime>(new EffectAnimationTime);
|
||||
trans->addUpdateCallback(new UpdateVfxCallback(params));
|
||||
|
||||
|
|
|
@ -74,7 +74,6 @@ typedef std::shared_ptr<PartHolder> PartHolderPtr;
|
|||
struct EffectParams
|
||||
{
|
||||
std::string mModelName; // Just here so we don't add the same effect twice
|
||||
PartHolderPtr mObjects;
|
||||
std::shared_ptr<EffectAnimationTime> mAnimTime;
|
||||
float mMaxControllerLength;
|
||||
int mEffectId;
|
||||
|
|
Loading…
Reference in a new issue