Keep sitting points updated

This commit is contained in:
Atlante45 2014-06-25 11:49:36 -07:00
parent 1d7d970ff6
commit a8c3501bdd
2 changed files with 2 additions and 1 deletions

View file

@ -117,7 +117,7 @@ void ModelTree::storeModel(const ModelItem& model, const SharedNodePointer& send
// if we didn't find it in the tree, then store it...
if (!theOperator.wasFound()) {
AACube modelCube = model.getAACube();
ModelTreeElement* element = (ModelTreeElement*)getOrCreateChildElementContaining(model.getAACube());
ModelTreeElement* element = static_cast<ModelTreeElement*>(getOrCreateChildElementContaining(model.getAACube()));
element->storeModel(model);
// In the case where we stored it, we also need to mark the entire "path" down to the model as

View file

@ -330,6 +330,7 @@ bool ModelTreeElement::updateModel(const ModelItemID& modelID, const ModelItemPr
}
if (found) {
thisModel.setProperties(properties);
thisModel.setSittingPoints(_myTree->getGeometryForModel(thisModel)->sittingPoints);
markWithChangedTime(); // mark our element as changed..
const bool wantDebug = false;
if (wantDebug) {