mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 23:24:22 +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) {
|
||||
thisModel.setProperties(properties);
|
||||
thisModel.setSittingPoints(_myTree->getGeometryForModel(thisModel)->sittingPoints);
|
||||
if (_myTree->getGeometryForModel(thisModel)) {
|
||||
thisModel.setSittingPoints(_myTree->getGeometryForModel(thisModel)->sittingPoints);
|
||||
}
|
||||
markWithChangedTime(); // mark our element as changed..
|
||||
const bool wantDebug = false;
|
||||
if (wantDebug) {
|
||||
|
|
Loading…
Reference in a new issue