Do not use a PartHolder for spell effect node

pull/541/head
Andrei Kortunov 6 years ago
parent 632045e145
commit 3896a2eba6

@ -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…
Cancel
Save