mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 09:37:29 +02:00
Fix crash occuring when geometry not yet available
This commit is contained in:
parent
aad666be62
commit
baf4a82269
1 changed files with 3 additions and 1 deletions
|
@ -330,7 +330,9 @@ bool ModelTreeElement::updateModel(const ModelItemID& modelID, const ModelItemPr
|
||||||
}
|
}
|
||||||
if (found) {
|
if (found) {
|
||||||
thisModel.setProperties(properties);
|
thisModel.setProperties(properties);
|
||||||
|
if (_myTree->getGeometryForModel(thisModel)) {
|
||||||
thisModel.setSittingPoints(_myTree->getGeometryForModel(thisModel)->sittingPoints);
|
thisModel.setSittingPoints(_myTree->getGeometryForModel(thisModel)->sittingPoints);
|
||||||
|
}
|
||||||
markWithChangedTime(); // mark our element as changed..
|
markWithChangedTime(); // mark our element as changed..
|
||||||
const bool wantDebug = false;
|
const bool wantDebug = false;
|
||||||
if (wantDebug) {
|
if (wantDebug) {
|
||||||
|
|
Loading…
Reference in a new issue