mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01: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;
|
||||
}
|
||||
|
||||
if (materialChanged) {
|
||||
auto materials = _materials.find("0");
|
||||
if (materials != _materials.end()) {
|
||||
auto materials = _materials.find("0");
|
||||
if (materials != _materials.end()) {
|
||||
if (materialChanged) {
|
||||
materials->second.setNeedsUpdate(true);
|
||||
}
|
||||
|
||||
if (materials->second.shouldUpdate()) {
|
||||
RenderPipelines::updateMultiMaterial(materials->second);
|
||||
emit requestRenderUpdate();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue