From 7c6dcae68007489e616af00cfccbbd6b2c2eb50d Mon Sep 17 00:00:00 2001 From: Anchor Linden Date: Thu, 29 Mar 2018 10:29:30 -0700 Subject: MAINT-8438: Setting attachment bake texture to None does not refresh the base avatar bake --- indra/newview/lltexturectrl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp index 97876dd60a..7f1169a5c2 100644 --- a/indra/newview/lltexturectrl.cpp +++ b/indra/newview/lltexturectrl.cpp @@ -1012,7 +1012,10 @@ void LLFloaterTexturePicker::onBakeTextureSelect(LLUICtrl* ctrl, void *user_data { self->setCanApply(true, true); self->setImageID(self->mDefaultImageAssetID); - self->commitIfImmediateSet(); + if (self->mCanPreview) + { + self->commitIfImmediateSet(); + } } } -- cgit v1.2.3