mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Keep sitting points updated
This commit is contained in:
parent
1d7d970ff6
commit
a8c3501bdd
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue