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);
QUuid partId = QUuid(partIt.first);
updatedMaterialIdMap.insert({partId, materialId});
auto countershadedIt = partIt.second.find("countershaded");
if (countershadedIt != partIt.second.end())
updatedCountershadedMap.insert({partId, isTrueValueString(countershadedIt->second)});
updatedCountershadedMap.insert({partId,
isTrueValueString(valueOfKeyInMapOrEmpty(partIt.second, "countershaded"))});
}
for (const auto &bmeshNode: m_outcome->nodes) {