Fix countershaded configure

master
Jeremy Hu 2019-11-08 17:55:50 +09:30
parent dae8fcdfc7
commit e2ca6ec5fa
1 changed files with 2 additions and 3 deletions

View File

@ -172,9 +172,8 @@ void TextureGenerator::prepare()
materialId = QUuid(materialIdIt->second); materialId = QUuid(materialIdIt->second);
QUuid partId = QUuid(partIt.first); QUuid partId = QUuid(partIt.first);
updatedMaterialIdMap.insert({partId, materialId}); updatedMaterialIdMap.insert({partId, materialId});
auto countershadedIt = partIt.second.find("countershaded"); updatedCountershadedMap.insert({partId,
if (countershadedIt != partIt.second.end()) isTrueValueString(valueOfKeyInMapOrEmpty(partIt.second, "countershaded"))});
updatedCountershadedMap.insert({partId, isTrueValueString(countershadedIt->second)});
} }
for (const auto &bmeshNode: m_outcome->nodes) { for (const auto &bmeshNode: m_outcome->nodes) {