mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 06:53:01 +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();
|
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");
|
settings.beginWriteArray("avatarEntityData");
|
||||||
int avatarEntityIndex = 0;
|
int avatarEntityIndex = 0;
|
||||||
auto hmdInterface = DependencyManager::get<HMDScriptingInterface>();
|
auto hmdInterface = DependencyManager::get<HMDScriptingInterface>();
|
||||||
|
|
Loading…
Reference in a new issue