mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-08 19:46:43 +00:00
Don't run osg::Depth replacement visitor for NIF templates
This commit is contained in:
parent
4fd9e5b2bb
commit
47130e2155
1 changed files with 4 additions and 3 deletions
|
|
@ -701,6 +701,10 @@ namespace Resource
|
|||
node->accept(renamingVisitor);
|
||||
}
|
||||
|
||||
// Replace osg::Depth with reverse-Z-compatible SceneUtil::AutoDepth
|
||||
SceneUtil::ReplaceDepthVisitor replaceDepthVisitor;
|
||||
node->accept(replaceDepthVisitor);
|
||||
|
||||
for (osg::Node* foundRigNode : rigFinder.mFoundNodes)
|
||||
{
|
||||
if (foundRigNode->libraryName() == std::string_view("osgAnimation"))
|
||||
|
|
@ -1019,9 +1023,6 @@ namespace Resource
|
|||
mMinFilter, mMagFilter, mMaxAnisotropy);
|
||||
loaded->accept(setFilterSettingsControllerVisitor);
|
||||
|
||||
SceneUtil::ReplaceDepthVisitor replaceDepthVisitor;
|
||||
loaded->accept(replaceDepthVisitor);
|
||||
|
||||
osg::ref_ptr<Shader::ShaderVisitor> shaderVisitor(createShaderVisitor());
|
||||
loaded->accept(*shaderVisitor);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue