mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 13:23:52 +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
|
else
|
||||||
{
|
{
|
||||||
// Remove effect immediately
|
// Hide effect immediately
|
||||||
mParams.mObjects.reset();
|
node->setNodeMask(0);
|
||||||
mFinished = true;
|
mFinished = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1686,7 +1686,6 @@ namespace MWRender
|
||||||
params.mLoop = loop;
|
params.mLoop = loop;
|
||||||
params.mEffectId = effectId;
|
params.mEffectId = effectId;
|
||||||
params.mBoneName = bonename;
|
params.mBoneName = bonename;
|
||||||
params.mObjects = PartHolderPtr(new PartHolder(node));
|
|
||||||
params.mAnimTime = std::shared_ptr<EffectAnimationTime>(new EffectAnimationTime);
|
params.mAnimTime = std::shared_ptr<EffectAnimationTime>(new EffectAnimationTime);
|
||||||
trans->addUpdateCallback(new UpdateVfxCallback(params));
|
trans->addUpdateCallback(new UpdateVfxCallback(params));
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,6 @@ typedef std::shared_ptr<PartHolder> PartHolderPtr;
|
||||||
struct EffectParams
|
struct EffectParams
|
||||||
{
|
{
|
||||||
std::string mModelName; // Just here so we don't add the same effect twice
|
std::string mModelName; // Just here so we don't add the same effect twice
|
||||||
PartHolderPtr mObjects;
|
|
||||||
std::shared_ptr<EffectAnimationTime> mAnimTime;
|
std::shared_ptr<EffectAnimationTime> mAnimTime;
|
||||||
float mMaxControllerLength;
|
float mMaxControllerLength;
|
||||||
int mEffectId;
|
int mEffectId;
|
||||||
|
|
Loading…
Reference in a new issue