Fix material preview.

master
Jeremy Hu 2019-03-16 15:32:45 +09:30
parent 7677a404e6
commit a1249f5fcb
1 changed files with 2 additions and 3 deletions

View File

@ -496,8 +496,7 @@ nodemesh::Combiner::Mesh *MeshGenerator::combineComponentMesh(const QString &com
if (m_cacheEnabled) {
if (m_dirtyComponentIds.find(componentIdString) == m_dirtyComponentIds.end()) {
if (nullptr == componentCache.mesh)
return nullptr;
if (nullptr != componentCache.mesh)
return new nodemesh::Combiner::Mesh(*componentCache.mesh);
}
}