MAINT-1693 FIXED Building Block Type is changed to Torus after cancel changing of texture for sculpted object

master
Mnikolenko ProductEngine 2015-06-04 12:50:16 +03:00
parent 3f3bac5e91
commit fda0c3eb59
1 changed files with 5 additions and 1 deletions

View File

@ -2000,7 +2000,11 @@ void LLPanelObject::onCancelSculpt(const LLSD& data)
LLTextureCtrl* mTextureCtrl = getChild<LLTextureCtrl>("sculpt texture control");
if(!mTextureCtrl)
return;
if(mSculptTextureRevert == LLUUID::null)
{
mSculptTextureRevert = LLUUID(SCULPT_DEFAULT_TEXTURE);
}
mTextureCtrl->setImageAssetID(mSculptTextureRevert);
sendSculpt();