From cf7230f0235ce14fca4195d66d3a604f6fe00dc2 Mon Sep 17 00:00:00 2001 From: SamGondelman Date: Wed, 3 Apr 2019 11:26:07 -0700 Subject: [PATCH] fix non-embedded textures --- libraries/baking/src/MaterialBaker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/baking/src/MaterialBaker.cpp b/libraries/baking/src/MaterialBaker.cpp index 484fd8cace..9fcd7d0354 100644 --- a/libraries/baking/src/MaterialBaker.cpp +++ b/libraries/baking/src/MaterialBaker.cpp @@ -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 }; } };