mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 20:53:27 +02:00
fix shape issue that alezia found
This commit is contained in:
parent
e78ece7fc5
commit
af82860751
1 changed files with 7 additions and 3 deletions
|
@ -119,10 +119,14 @@ void ShapeEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPoint
|
||||||
materialChanged = true;
|
materialChanged = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (materialChanged) {
|
auto materials = _materials.find("0");
|
||||||
auto materials = _materials.find("0");
|
if (materials != _materials.end()) {
|
||||||
if (materials != _materials.end()) {
|
if (materialChanged) {
|
||||||
materials->second.setNeedsUpdate(true);
|
materials->second.setNeedsUpdate(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (materials->second.shouldUpdate()) {
|
||||||
|
RenderPipelines::updateMultiMaterial(materials->second);
|
||||||
emit requestRenderUpdate();
|
emit requestRenderUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue