1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 09:36:37 +00:00

Warn about particle emitters that have multiple parent node paths

This commit is contained in:
scrawl 2016-02-22 15:21:06 +01:00
parent c5d3e6c993
commit 1667c807be

View File

@ -267,6 +267,8 @@ void Emitter::emitParticles(double dt)
const osg::Matrix psToWorld = worldMats[0]; const osg::Matrix psToWorld = worldMats[0];
worldToPs = osg::Matrix::inverse(psToWorld); worldToPs = osg::Matrix::inverse(psToWorld);
} }
if (worldMats.size() > 1)
std::cerr << "Found multiple parent node paths in particle emitter, this is not correctly supported " << std::endl;
const osg::Matrix& ltw = getLocalToWorldMatrix(); const osg::Matrix& ltw = getLocalToWorldMatrix();
osg::Matrix emitterToPs = ltw * worldToPs; osg::Matrix emitterToPs = ltw * worldToPs;