From a8c3501bdd45ee7ea608ba2a23b6f3b285f7dc1d Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Wed, 25 Jun 2014 11:49:36 -0700 Subject: [PATCH] Keep sitting points updated --- libraries/models/src/ModelTree.cpp | 2 +- libraries/models/src/ModelTreeElement.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/models/src/ModelTree.cpp b/libraries/models/src/ModelTree.cpp index 466d4c5273..763f0a969e 100644 --- a/libraries/models/src/ModelTree.cpp +++ b/libraries/models/src/ModelTree.cpp @@ -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(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 diff --git a/libraries/models/src/ModelTreeElement.cpp b/libraries/models/src/ModelTreeElement.cpp index 75b9670d0f..c9e5f0f309 100644 --- a/libraries/models/src/ModelTreeElement.cpp +++ b/libraries/models/src/ModelTreeElement.cpp @@ -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) {