From 4ccd7bd808897265d68d712d91782ae3ffb29ef8 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Thu, 13 Jun 2019 10:17:14 -0700 Subject: [PATCH] BUGZ-658: Don't let the user switch avatar models to Woody --- .../qml/hifi/simplifiedUI/topBar/SimplifiedTopBar.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interface/resources/qml/hifi/simplifiedUI/topBar/SimplifiedTopBar.qml b/interface/resources/qml/hifi/simplifiedUI/topBar/SimplifiedTopBar.qml index 85b3cf149f..6e86849d03 100644 --- a/interface/resources/qml/hifi/simplifiedUI/topBar/SimplifiedTopBar.qml +++ b/interface/resources/qml/hifi/simplifiedUI/topBar/SimplifiedTopBar.qml @@ -47,6 +47,11 @@ Rectangle { onSkeletonModelURLChanged: { root.updatePreviewUrl(); + + if (MyAvatar.skeletonModelURL.indexOf("defaultAvatar" > -1) && topBarInventoryModel.count > 0) { + Settings.setValue("simplifiedUI/alreadyAutoSelectedAvatar", true); + MyAvatar.skeletonModelURL = topBarInventoryModel.get(0).download_url; + } } }