Fix material preview.
parent
7677a404e6
commit
a1249f5fcb
|
@ -496,8 +496,7 @@ nodemesh::Combiner::Mesh *MeshGenerator::combineComponentMesh(const QString &com
|
||||||
|
|
||||||
if (m_cacheEnabled) {
|
if (m_cacheEnabled) {
|
||||||
if (m_dirtyComponentIds.find(componentIdString) == m_dirtyComponentIds.end()) {
|
if (m_dirtyComponentIds.find(componentIdString) == m_dirtyComponentIds.end()) {
|
||||||
if (nullptr == componentCache.mesh)
|
if (nullptr != componentCache.mesh)
|
||||||
return nullptr;
|
|
||||||
return new nodemesh::Combiner::Mesh(*componentCache.mesh);
|
return new nodemesh::Combiner::Mesh(*componentCache.mesh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue