mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +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->setTranslation(getPosition());
|
||||
|
||||
// {
|
||||
// render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();
|
||||
// render::PendingChanges pendingChanges;
|
||||
// pendingChanges.updateItem<RenderableModelEntityItemMeta>(_myMetaItem, [](RenderableModelEntityItemMeta& data){});
|
||||
// scene->enqueuePendingChanges(pendingChanges);
|
||||
// }
|
||||
auto myMetaItemCopy = _myMetaItem;
|
||||
|
||||
void* key = (void*)this;
|
||||
AbstractViewStateInterface::instance()->pushPostUpdateLambda(key, [_myMetaItem]() {
|
||||
render::ScenePointer scene = AbstractViewStateInterface::instance()->getMain3DScene();
|
||||
render::PendingChanges pendingChanges;
|
||||
pendingChanges.updateItem<RenderableModelEntityItemMeta>(myMetaItemCopy, [](RenderableModelEntityItemMeta& data){});
|
||||
scene->enqueuePendingChanges(pendingChanges);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue