mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 08:35:52 -04:00
Warn about particle emitters that have multiple parent node paths
This commit is contained in:
parent
c5d3e6c993
commit
1667c807be
@ -267,6 +267,8 @@ void Emitter::emitParticles(double dt)
|
||||
const osg::Matrix psToWorld = worldMats[0];
|
||||
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();
|
||||
osg::Matrix emitterToPs = ltw * worldToPs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user