mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
some more small improvements
This commit is contained in:
parent
7bfbf3c99c
commit
06f7624512
1 changed files with 3 additions and 4 deletions
|
@ -1252,7 +1252,6 @@ void ModelEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPoint
|
|||
entity->_originalTexturesRead = false;
|
||||
entity->_needsJointSimulation = true;
|
||||
entity->_needsToRescaleModel = true;
|
||||
entity->updateModelBounds();
|
||||
emit requestRenderUpdate();
|
||||
});
|
||||
scene->enqueueTransaction(transaction);
|
||||
|
@ -1271,7 +1270,6 @@ void ModelEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPoint
|
|||
|
||||
// Nothing else to do unless the model is loaded
|
||||
if (!model->isLoaded()) {
|
||||
emit requestRenderUpdate();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1295,10 +1293,11 @@ void ModelEntityRenderer::doRenderUpdateAsynchronousTyped(const TypedEntityPoint
|
|||
entity->_originalTexturesRead = true;
|
||||
}
|
||||
|
||||
if (_textures != entity->getTextures()) {
|
||||
auto textures = entity->getTextures();
|
||||
if (_textures != textures) {
|
||||
QVariantMap newTextures;
|
||||
_texturesLoaded = false;
|
||||
_textures = entity->getTextures();
|
||||
_textures = textures;
|
||||
newTextures = parseTexturesToMap(_textures, entity->_originalTextures);
|
||||
model->setTextures(newTextures);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue