diff options
| author | Yuri Chebotarev <ychebotarev@productengine.com> | 2010-04-06 11:54:32 +0300 | 
|---|---|---|
| committer | Yuri Chebotarev <ychebotarev@productengine.com> | 2010-04-06 11:54:32 +0300 | 
| commit | 3da3ed2ccb9bab68be113bf7a79e6f95f7b73f9e (patch) | |
| tree | 76bf2106cbbed09e02340b9cb0fa2fdee422b725 /indra/llmessage/lltransfersourceasset.cpp | |
| parent | 9dcdbf029c3a74de5aefca52262d4ed41626298d (diff) | |
| parent | cf94709c60949d5376f8c5dc14bf5472631cd6c9 (diff) | |
merge
--HG--
branch : product-engine
Diffstat (limited to 'indra/llmessage/lltransfersourceasset.cpp')
| -rw-r--r-- | indra/llmessage/lltransfersourceasset.cpp | 49 | 
1 files changed, 1 insertions, 48 deletions
| diff --git a/indra/llmessage/lltransfersourceasset.cpp b/indra/llmessage/lltransfersourceasset.cpp index abfb432020..43f7c07e94 100644 --- a/indra/llmessage/lltransfersourceasset.cpp +++ b/indra/llmessage/lltransfersourceasset.cpp @@ -60,7 +60,7 @@ void LLTransferSourceAsset::initTransfer()  		// to the simulator. This is subset of assets we allow to be  		// simply pulled straight from the asset system.  		LLUUID* tidp; -		if(is_asset_fetch_by_id_allowed(mParams.getAssetType())) +		if(LLAssetType::lookupIsAssetFetchByIDAllowed(mParams.getAssetType()))  		{  			tidp = new LLUUID(getID());  			gAssetStorage->getAssetData( @@ -257,50 +257,3 @@ BOOL LLTransferSourceParamsAsset::unpackParams(LLDataPacker &dp)  	return TRUE;  } - -/** - * Helper functions - */ -bool is_asset_fetch_by_id_allowed(LLAssetType::EType type) -{ -	// *FIX: Make this list smaller. -	bool rv = false; -	switch(type) -	{ -		case LLAssetType::AT_SOUND: -		case LLAssetType::AT_LANDMARK: -		case LLAssetType::AT_CLOTHING: -		case LLAssetType::AT_BODYPART: -		case LLAssetType::AT_ANIMATION: -		case LLAssetType::AT_GESTURE: -			rv = true; -			break; -		default: -			break; -	} -	return rv; -} - -bool is_asset_id_knowable(LLAssetType::EType type) -{ -	// *FIX: Make this list smaller. -	bool rv = false; -	switch(type) -	{ -		case LLAssetType::AT_TEXTURE: -		case LLAssetType::AT_SOUND: -		case LLAssetType::AT_LANDMARK: -		case LLAssetType::AT_CLOTHING: -		case LLAssetType::AT_NOTECARD: -		case LLAssetType::AT_BODYPART: -		case LLAssetType::AT_ANIMATION: -		case LLAssetType::AT_GESTURE: -		case LLAssetType::AT_LINK: -		case LLAssetType::AT_LINK_FOLDER: -			rv = true; -			break; -		default: -			break; -	} -	return rv; -} | 
