3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 16:55:31 +02:00

don't use entity tree to clear all avatar entities

This commit is contained in:
Stephen Birarda 2018-08-21 12:21:29 -07:00
parent a177e49877
commit 1723f3d3d8

View file

@ -2114,7 +2114,10 @@ void MyAvatar::setAttachmentData(const QVector<AttachmentData>& attachmentData)
attachmentDataToEntityProperties(data, properties);
newEntitiesProperties.push_back(properties);
}
removeAvatarEntities();
// clear any existing avatar entities
setAvatarEntityData(AvatarEntityMap());
for (auto& properties : newEntitiesProperties) {
DependencyManager::get<EntityScriptingInterface>()->addEntity(properties, true);
}