mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 16:49:54 +00:00
Fix bolt for magic effects that don't have one specified
This commit is contained in:
parent
b82ee4b44f
commit
ffc885853a
2 changed files with 3 additions and 0 deletions
|
@ -1066,6 +1066,7 @@ void Animation::addEffect(const std::string &model, int effectId, bool loop, con
|
|||
for(size_t i = 0;i < params.mObjects.mParticles.size(); ++i)
|
||||
{
|
||||
Ogre::ParticleSystem* partSys = params.mObjects.mParticles[i];
|
||||
sh::Factory::getInstance()._ensureMaterial(partSys->getMaterialName(), "Default");
|
||||
Ogre::MaterialPtr mat = Ogre::MaterialManager::getSingleton().getByName(partSys->getMaterialName());
|
||||
static int count = 0;
|
||||
Ogre::String materialName = "openmw/" + Ogre::StringConverter::toString(count++);
|
||||
|
|
|
@ -2086,6 +2086,8 @@ namespace MWWorld
|
|||
iter->mEffectID);
|
||||
|
||||
projectileModel = magicEffect->mBolt;
|
||||
if (projectileModel.empty())
|
||||
projectileModel = "VFX_DefaultBolt";
|
||||
|
||||
static const std::string schools[] = {
|
||||
"alteration", "conjuration", "destruction", "illusion", "mysticism", "restoration"
|
||||
|
|
Loading…
Reference in a new issue