Showing the changes to interface/src/AvatarBookmarks.cpp (1 of 1 file). Show all
Unified · Split
| @@ -171,6 +171,13 @@ void AvatarBookmarks::loadBookmark(const QString& bookmarkName) { · 170 unmodified lines | |||
| 171 | 171 | ||
| 172 | if (bookmarkEntry != _bookmarks.end()) { | 172 | if (bookmarkEntry != _bookmarks.end()) { |
| 173 | QVariantMap bookmark = bookmarkEntry.value().toMap(); | 173 | QVariantMap bookmark = bookmarkEntry.value().toMap(); |
| 174 | if (bookmark.empty()) { // compatibility with bookmarks like this: "Wooden Doll": "http://mpassets.highfidelity.com/7fe80a1e-f445-4800-9e89-40e677b03bee-v1/mannequin.fst?noDownload=false", | ||
| 175 | auto avatarUrl = bookmarkEntry.value().toString(); | ||
| 176 | if (!avatarUrl.isEmpty()) { | ||
| 177 | bookmark.insert(ENTRY_AVATAR_URL, avatarUrl); | ||
| 178 | } | ||
| 179 | } | ||
| 180 | |||
| 174 | if (!bookmark.empty()) { | 181 | if (!bookmark.empty()) { |
| 175 | auto myAvatar = DependencyManager::get<AvatarManager>()->getMyAvatar(); | 182 | auto myAvatar = DependencyManager::get<AvatarManager>()->getMyAvatar(); |
| 176 | auto treeRenderer = DependencyManager::get<EntityTreeRenderer>(); | 183 | auto treeRenderer = DependencyManager::get<EntityTreeRenderer>(); |