mirror of
https://github.com/lubosz/overte.git
synced 2025-04-29 20:43:12 +02:00
don't use entity tree to clear all avatar entities
This commit is contained in:
parent
a177e49877
commit
1723f3d3d8
1 changed files with 4 additions and 1 deletions
|
@ -2114,7 +2114,10 @@ void MyAvatar::setAttachmentData(const QVector<AttachmentData>& attachmentData)
|
||||||
attachmentDataToEntityProperties(data, properties);
|
attachmentDataToEntityProperties(data, properties);
|
||||||
newEntitiesProperties.push_back(properties);
|
newEntitiesProperties.push_back(properties);
|
||||||
}
|
}
|
||||||
removeAvatarEntities();
|
|
||||||
|
// clear any existing avatar entities
|
||||||
|
setAvatarEntityData(AvatarEntityMap());
|
||||||
|
|
||||||
for (auto& properties : newEntitiesProperties) {
|
for (auto& properties : newEntitiesProperties) {
|
||||||
DependencyManager::get<EntityScriptingInterface>()->addEntity(properties, true);
|
DependencyManager::get<EntityScriptingInterface>()->addEntity(properties, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue