mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 15:33:51 +02:00
fix non-embedded textures
This commit is contained in:
parent
770b863604
commit
cf7230f023
1 changed files with 1 additions and 2 deletions
|
@ -243,8 +243,7 @@ void MaterialBaker::outputMaterial() {
|
|||
|
||||
void MaterialBaker::addTexture(const QString& materialName, image::TextureUsage::Type textureUsage, const hfm::Texture& texture) {
|
||||
auto& textureUsageMap = _textureContentMap[materialName.toStdString()];
|
||||
if (textureUsageMap.find(textureUsage) == textureUsageMap.end()) {
|
||||
// Content may be empty, unless the data is inlined
|
||||
if (textureUsageMap.find(textureUsage) == textureUsageMap.end() && !texture.content.isEmpty()) {
|
||||
textureUsageMap[textureUsage] = { texture.content, texture.filename };
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue