mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 01:50:12 +02:00
merge from other branch
This commit is contained in:
commit
dabecb7cc2
1 changed files with 9 additions and 6 deletions
|
@ -799,12 +799,15 @@ void RenderableModelEntityItem::locationChanged(bool tellPhysics) {
|
||||||
_model->setRotation(getRotation());
|
_model->setRotation(getRotation());
|
||||||
_model->setTranslation(getPosition());
|
_model->setTranslation(getPosition());
|
||||||
|
|
||||||
// {
|
auto myMetaItemCopy = _myMetaItem;
|
||||||
// render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();
|
|
||||||
// render::PendingChanges pendingChanges;
|
void* key = (void*)this;
|
||||||
// pendingChanges.updateItem<RenderableModelEntityItemMeta>(_myMetaItem, [](RenderableModelEntityItemMeta& data){});
|
AbstractViewStateInterface::instance()->pushPostUpdateLambda(key, [_myMetaItem]() {
|
||||||
// scene->enqueuePendingChanges(pendingChanges);
|
render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();
|
||||||
// }
|
render::PendingChanges pendingChanges;
|
||||||
|
pendingChanges.updateItem<RenderableModelEntityItemMeta>(myMetaItemCopy, [](RenderableModelEntityItemMeta& data){});
|
||||||
|
scene->enqueuePendingChanges(pendingChanges);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue