mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:03:57 +02:00
clear old avatarEntityData when saving settings
This commit is contained in:
parent
cc301d1c1a
commit
e02810458b
1 changed files with 5 additions and 0 deletions
|
@ -795,6 +795,11 @@ void MyAvatar::saveData() {
|
|||
}
|
||||
settings.endArray();
|
||||
|
||||
if (_avatarEntityData.size() == 0) {
|
||||
// HACK: manually remove empty 'avatarEntityData' else deleted avatarEntityData may show up in settings file
|
||||
settings.remove("avatarEntityData");
|
||||
}
|
||||
|
||||
settings.beginWriteArray("avatarEntityData");
|
||||
int avatarEntityIndex = 0;
|
||||
auto hmdInterface = DependencyManager::get<HMDScriptingInterface>();
|
||||
|
|
Loading…
Reference in a new issue