|
|
@ -47,7 +47,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <components/files/conversion.hpp>
|
|
|
|
#include <components/files/conversion.hpp>
|
|
|
|
#include <components/misc/strings/conversion.hpp>
|
|
|
|
#include <components/misc/strings/conversion.hpp>
|
|
|
|
#include <components/sceneutil/texturetype.hpp>
|
|
|
|
#include <components/sceneutil/util.hpp>
|
|
|
|
#include <components/vfs/manager.hpp>
|
|
|
|
#include <components/vfs/manager.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
|
@ -107,12 +107,7 @@ namespace
|
|
|
|
std::string fileName;
|
|
|
|
std::string fileName;
|
|
|
|
if (image)
|
|
|
|
if (image)
|
|
|
|
fileName = image->getFileName();
|
|
|
|
fileName = image->getFileName();
|
|
|
|
const osg::StateAttribute* type
|
|
|
|
mTextures.emplace_back(SceneUtil::getTextureType(*stateset, *texture, i), fileName);
|
|
|
|
= stateset->getTextureAttribute(i, SceneUtil::TextureType::AttributeType);
|
|
|
|
|
|
|
|
if (type)
|
|
|
|
|
|
|
|
mTextures.emplace_back(static_cast<const SceneUtil::TextureType*>(type)->getName(), fileName);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
mTextures.emplace_back(texture->getName(), fileName);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|