mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 09:18:45 +02:00
16683 Avatar App - Add to Favorites Button Not Working
This commit is contained in:
parent
2597568a0a
commit
437f49ac22
1 changed files with 3 additions and 0 deletions
|
@ -159,6 +159,9 @@ function fromQml(message) { // messages are {method, params}, like json-rpc. See
|
||||||
|
|
||||||
for(var bookmarkName in message.data.bookmarks) {
|
for(var bookmarkName in message.data.bookmarks) {
|
||||||
var bookmark = message.data.bookmarks[bookmarkName];
|
var bookmark = message.data.bookmarks[bookmarkName];
|
||||||
|
if (!bookmark.avatarEntites) { // ensure avatarEntites always exist
|
||||||
|
bookmark.avatarEntites = [];
|
||||||
|
}
|
||||||
|
|
||||||
bookmark.avatarEntites.forEach(function(avatarEntity) {
|
bookmark.avatarEntites.forEach(function(avatarEntity) {
|
||||||
avatarEntity.properties.localRotationAngles = Quat.safeEulerAngles(avatarEntity.properties.localRotation)
|
avatarEntity.properties.localRotationAngles = Quat.safeEulerAngles(avatarEntity.properties.localRotation)
|
||||||
|
|
Loading…
Reference in a new issue