mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 03:59:56 +00:00
Revert "Apply ShaderVisitor to Rig/MorphGeometry source geometry"
This reverts commit471f6abf6c
. The commit should be redundant as of20e799dadc
This commit is contained in:
parent
20e799dadc
commit
4aa40897ca
1 changed files with 3 additions and 10 deletions
|
@ -889,28 +889,21 @@ namespace Shader
|
|||
if (auto rig = dynamic_cast<SceneUtil::RigGeometry*>(&drawable))
|
||||
{
|
||||
osg::ref_ptr<osg::Geometry> sourceGeometry = rig->getSourceGeometry();
|
||||
if (sourceGeometry)
|
||||
{
|
||||
sourceGeometry->accept(*this);
|
||||
if (sourceGeometry && adjustGeometry(*sourceGeometry, reqs))
|
||||
rig->setSourceGeometry(sourceGeometry);
|
||||
}
|
||||
}
|
||||
else if (auto morph = dynamic_cast<SceneUtil::MorphGeometry*>(&drawable))
|
||||
{
|
||||
osg::ref_ptr<osg::Geometry> sourceGeometry = morph->getSourceGeometry();
|
||||
if (sourceGeometry)
|
||||
{
|
||||
sourceGeometry->accept(*this);
|
||||
if (sourceGeometry && adjustGeometry(*sourceGeometry, reqs))
|
||||
morph->setSourceGeometry(sourceGeometry);
|
||||
}
|
||||
}
|
||||
else if (auto osgaRig = dynamic_cast<SceneUtil::RigGeometryHolder*>(&drawable))
|
||||
{
|
||||
osg::ref_ptr<SceneUtil::OsgaRigGeometry> sourceOsgaRigGeometry = osgaRig->getSourceRigGeometry();
|
||||
osg::ref_ptr<osg::Geometry> sourceGeometry = sourceOsgaRigGeometry->getSourceGeometry();
|
||||
if (sourceGeometry)
|
||||
if (sourceGeometry && adjustGeometry(*sourceGeometry, reqs))
|
||||
{
|
||||
sourceGeometry->accept(*this);
|
||||
sourceOsgaRigGeometry->setSourceGeometry(sourceGeometry);
|
||||
osgaRig->setSourceRigGeometry(sourceOsgaRigGeometry);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue