diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llwearable.cpp | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/linden/indra/newview/llwearable.cpp b/linden/indra/newview/llwearable.cpp index 6e8123a..27811e8 100644 --- a/linden/indra/newview/llwearable.cpp +++ b/linden/indra/newview/llwearable.cpp | |||
@@ -846,7 +846,7 @@ struct LLWearableSaveData | |||
846 | void LLWearable::saveNewAsset() | 846 | void LLWearable::saveNewAsset() |
847 | { | 847 | { |
848 | // llinfos << "LLWearable::saveNewAsset() type: " << getTypeName() << llendl; | 848 | // llinfos << "LLWearable::saveNewAsset() type: " << getTypeName() << llendl; |
849 | //dump(); | 849 | //llinfos << *this << llendl; |
850 | 850 | ||
851 | char new_asset_id_string[UUID_STR_LENGTH]; /* Flawfinder: ignore */ | 851 | char new_asset_id_string[UUID_STR_LENGTH]; /* Flawfinder: ignore */ |
852 | mAssetID.toString(new_asset_id_string); | 852 | mAssetID.toString(new_asset_id_string); |
@@ -949,31 +949,32 @@ BOOL LLWearable::isMatchedToInventoryItem( LLViewerInventoryItem* item ) | |||
949 | ( mSaleInfo == item->getSaleInfo() ); | 949 | ( mSaleInfo == item->getSaleInfo() ); |
950 | } | 950 | } |
951 | 951 | ||
952 | void LLWearable::dump() | 952 | std::ostream& operator<<(std::ostream &s, const LLWearable &w) |
953 | { | 953 | { |
954 | llinfos << "wearable " << LLWearable::typeToTypeName( mType ) << llendl; | 954 | s << "wearable " << LLWearable::typeToTypeName( w.mType ) << "\n"; |
955 | llinfos << " Name: " << mName << llendl; | 955 | s << " Name: " << w.mName << "\n"; |
956 | llinfos << " Desc: " << mDescription << llendl; | 956 | s << " Desc: " << w.mDescription << "\n"; |
957 | //mPermissions | 957 | //w.mPermissions |
958 | //mSaleInfo | 958 | //w.mSaleInfo |
959 | 959 | ||
960 | llinfos << " Params:" << llendl; | 960 | s << " Params:" << "\n"; |
961 | for (param_map_t::iterator iter = mVisualParamMap.begin(); | 961 | for (LLWearable::param_map_t::const_iterator iter = w.mVisualParamMap.begin(); |
962 | iter != mVisualParamMap.end(); ++iter) | 962 | iter != w.mVisualParamMap.end(); ++iter) |
963 | { | 963 | { |
964 | S32 param_id = iter->first; | 964 | S32 param_id = iter->first; |
965 | F32 param_weight = iter->second; | 965 | F32 param_weight = iter->second; |
966 | llinfos << " " << param_id << " " << param_weight << llendl; | 966 | s << " " << param_id << " " << param_weight << "\n"; |
967 | } | 967 | } |
968 | 968 | ||
969 | llinfos << " Textures:" << llendl; | 969 | s << " Textures:" << "\n"; |
970 | for (te_map_t::iterator iter = mTEMap.begin(); | 970 | for (LLWearable::te_map_t::const_iterator iter = w.mTEMap.begin(); |
971 | iter != mTEMap.end(); ++iter) | 971 | iter != w.mTEMap.end(); ++iter) |
972 | { | 972 | { |
973 | S32 te = iter->first; | 973 | S32 te = iter->first; |
974 | LLUUID& image_id = iter->second; | 974 | const LLUUID& image_id = iter->second; |
975 | llinfos << " " << te << " " << image_id << llendl; | 975 | s << " " << te << " " << image_id << "\n"; |
976 | } | 976 | } |
977 | return s; | ||
977 | } | 978 | } |
978 | 979 | ||
979 | 980 | ||