diff options
| author | Seth ProductEngine <slitovchuk@productengine.com> | 2010-10-29 22:31:21 +0300 | 
|---|---|---|
| committer | Seth ProductEngine <slitovchuk@productengine.com> | 2010-10-29 22:31:21 +0300 | 
| commit | 8a4b7c85c2227a2465bc4fb028496c1908c298d3 (patch) | |
| tree | 86557d38b30933d7aa4007a7e627b5fec9265257 /indra | |
| parent | 42b49397d2347b6a97394ce0b35efe5cc2ab44a2 (diff) | |
STORM-184 FIXED Disabled "Save" command for outfits without name (with "No Outfit" in My Appearance SP).
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llappearancemgr.cpp | 14 | 
1 files changed, 6 insertions, 8 deletions
| diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index ed5e8ceee3..62074ddcd5 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -2204,12 +2204,11 @@ void LLAppearanceMgr::updateIsDirty()  		base_outfit = catp->getUUID();  	} -	if(base_outfit.isNull()) -	{ -		// no outfit link found, display "unsaved outfit" -		mOutfitIsDirty = true; -	} -	else +	// Set dirty to "false" if no base outfit found to disable "Save" +	// and leave only "Save As" enabled in My Outfits. +	mOutfitIsDirty = false; + +	if (base_outfit.notNull())  	{  		LLIsOfAssetType collector = LLIsOfAssetType(LLAssetType::AT_LINK); @@ -2248,8 +2247,6 @@ void LLAppearanceMgr::updateIsDirty()  				return;  			}  		} - -		mOutfitIsDirty = false;  	}  } @@ -2635,6 +2632,7 @@ void LLAppearanceMgr::dumpItemArray(const LLInventoryModel::item_array_t& items,  LLAppearanceMgr::LLAppearanceMgr():  	mAttachmentInvLinkEnabled(false),  	mOutfitIsDirty(false), +	mOutfitLocked(false),  	mIsInUpdateAppearanceFromCOF(false)  {  	LLOutfitObserver& outfit_observer = LLOutfitObserver::instance(); | 
