mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +00:00
Particle fixes
This commit is contained in:
parent
261ed1f4e5
commit
af2f26d04d
@ -1172,14 +1172,10 @@ bool CharacterController::updateWeaponState()
|
||||
effect = store.get<ESM::MagicEffect>().find(effectentry.mEffectID);
|
||||
|
||||
const ESM::Static* castStatic = MWBase::Environment::get().getWorld()->getStore().get<ESM::Static>().find ("VFX_Hands");
|
||||
if (mAnimation->hasNode("Left Hand"))
|
||||
mAnimation->addEffect("meshes\\" + castStatic->mModel, -1, false, "Left Hand", effect->mParticle);
|
||||
else
|
||||
if (mAnimation->hasNode("Bip01 L Hand"))
|
||||
mAnimation->addEffect("meshes\\" + castStatic->mModel, -1, false, "Bip01 L Hand", effect->mParticle);
|
||||
|
||||
if (mAnimation->hasNode("Right Hand"))
|
||||
mAnimation->addEffect("meshes\\" + castStatic->mModel, -1, false, "Right Hand", effect->mParticle);
|
||||
else
|
||||
if (mAnimation->hasNode("Bip01 R Hand"))
|
||||
mAnimation->addEffect("meshes\\" + castStatic->mModel, -1, false, "Bip01 R Hand", effect->mParticle);
|
||||
|
||||
switch(effectentry.mRange)
|
||||
|
@ -1042,11 +1042,11 @@ namespace MWRender
|
||||
parentNode = mObjectRoot->asGroup();
|
||||
else
|
||||
{
|
||||
SceneUtil::FindByNameVisitor visitor(bonename);
|
||||
mObjectRoot->accept(visitor);
|
||||
if (!visitor.mFoundNode)
|
||||
NodeMap::iterator found = mNodeMap.find(Misc::StringUtils::lowerCase(bonename));
|
||||
if (found == mNodeMap.end())
|
||||
throw std::runtime_error("Can't find bone " + bonename);
|
||||
parentNode = visitor.mFoundNode;
|
||||
|
||||
parentNode = found->second;
|
||||
}
|
||||
osg::ref_ptr<osg::Node> node = mResourceSystem->getSceneManager()->createInstance(model, parentNode);
|
||||
params.mObjects = PartHolderPtr(new PartHolder(node));
|
||||
|
Loading…
x
Reference in New Issue
Block a user