mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 00:32:49 +00:00
Revert "Apply ShaderVisitor to Rig/MorphGeometry source geometry"
This reverts commit 471f6abf6cae0f5e5faf294b9e7373fd5541469a. The commit should be redundant as of 20e799dadc2172fa1fcb230a0c5d731666a176cc
This commit is contained in:
parent
20e799dadc
commit
4aa40897ca
@ -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…
x
Reference in New Issue
Block a user