diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llinventoryview.cpp | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llinventoryview.cpp')
-rw-r--r-- | linden/indra/newview/llinventoryview.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/linden/indra/newview/llinventoryview.cpp b/linden/indra/newview/llinventoryview.cpp index 162cf9f..900b145 100644 --- a/linden/indra/newview/llinventoryview.cpp +++ b/linden/indra/newview/llinventoryview.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | 5 | * Copyright (c) 2001-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -942,9 +943,15 @@ void LLInventoryView::onFilterSelected(void* userdata, bool from_click) | |||
942 | 943 | ||
943 | LLUUID get_item_icon_uuid(LLAssetType::EType asset_type, | 944 | LLUUID get_item_icon_uuid(LLAssetType::EType asset_type, |
944 | LLInventoryType::EType inventory_type, | 945 | LLInventoryType::EType inventory_type, |
945 | U32 flags) | 946 | U32 attachment_point, |
947 | BOOL item_is_multi ) | ||
946 | { | 948 | { |
947 | EInventoryIcon idx = OBJECT_ICON_NAME; | 949 | EInventoryIcon idx = OBJECT_ICON_NAME; |
950 | if ( item_is_multi ) | ||
951 | { | ||
952 | idx = OBJECT_MULTI_ICON_NAME; | ||
953 | } | ||
954 | |||
948 | switch(asset_type) | 955 | switch(asset_type) |
949 | { | 956 | { |
950 | case LLAssetType::AT_TEXTURE: | 957 | case LLAssetType::AT_TEXTURE: |
@@ -957,11 +964,12 @@ LLUUID get_item_icon_uuid(LLAssetType::EType asset_type, | |||
957 | idx = TEXTURE_ICON_NAME; | 964 | idx = TEXTURE_ICON_NAME; |
958 | } | 965 | } |
959 | break; | 966 | break; |
967 | |||
960 | case LLAssetType::AT_SOUND: | 968 | case LLAssetType::AT_SOUND: |
961 | idx = SOUND_ICON_NAME; | 969 | idx = SOUND_ICON_NAME; |
962 | break; | 970 | break; |
963 | case LLAssetType::AT_CALLINGCARD: | 971 | case LLAssetType::AT_CALLINGCARD: |
964 | if(flags != 0) | 972 | if(attachment_point!= 0) |
965 | { | 973 | { |
966 | idx = CALLINGCARD_ONLINE_ICON_NAME; | 974 | idx = CALLINGCARD_ONLINE_ICON_NAME; |
967 | } | 975 | } |
@@ -971,7 +979,7 @@ LLUUID get_item_icon_uuid(LLAssetType::EType asset_type, | |||
971 | } | 979 | } |
972 | break; | 980 | break; |
973 | case LLAssetType::AT_LANDMARK: | 981 | case LLAssetType::AT_LANDMARK: |
974 | if(flags != 0) | 982 | if(attachment_point!= 0) |
975 | { | 983 | { |
976 | idx = LANDMARK_VISITED_ICON_NAME; | 984 | idx = LANDMARK_VISITED_ICON_NAME; |
977 | } | 985 | } |
@@ -992,7 +1000,7 @@ LLUUID get_item_icon_uuid(LLAssetType::EType asset_type, | |||
992 | { | 1000 | { |
993 | idx = BODYPART_ICON_NAME; | 1001 | idx = BODYPART_ICON_NAME; |
994 | } | 1002 | } |
995 | switch(flags) | 1003 | switch(attachment_point) |
996 | { | 1004 | { |
997 | case WT_SHAPE: | 1005 | case WT_SHAPE: |
998 | idx = BODYPART_SHAPE_ICON_NAME; | 1006 | idx = BODYPART_SHAPE_ICON_NAME; |
@@ -1056,9 +1064,10 @@ LLUUID get_item_icon_uuid(LLAssetType::EType asset_type, | |||
1056 | 1064 | ||
1057 | LLViewerImage* get_item_icon(LLAssetType::EType asset_type, | 1065 | LLViewerImage* get_item_icon(LLAssetType::EType asset_type, |
1058 | LLInventoryType::EType inventory_type, | 1066 | LLInventoryType::EType inventory_type, |
1059 | U32 flags) | 1067 | U32 attachment_point, |
1068 | BOOL item_is_multi) | ||
1060 | { | 1069 | { |
1061 | LLUUID icon_uuid = get_item_icon_uuid(asset_type, inventory_type, flags); | 1070 | LLUUID icon_uuid = get_item_icon_uuid(asset_type, inventory_type, attachment_point, item_is_multi ); |
1062 | LLViewerImage* imagep = gImageList.getImage(icon_uuid, MIPMAP_FALSE, TRUE); | 1071 | LLViewerImage* imagep = gImageList.getImage(icon_uuid, MIPMAP_FALSE, TRUE); |
1063 | imagep->setClamp(TRUE, TRUE); | 1072 | imagep->setClamp(TRUE, TRUE); |
1064 | return imagep; | 1073 | return imagep; |