Fix crash occuring when geometry not yet available

This commit is contained in:
Atlante45 2014-06-27 09:56:03 -07:00
parent aad666be62
commit baf4a82269

View file

@ -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) {