aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-29 11:19:39 -0700
committerMcCabe Maxsted2010-08-29 11:19:39 -0700
commit4a62f50b88998756a0644842bd9c27438f3f097a (patch)
treeb616e192df524055d0cc25d4631d63f825d1732e /linden/indra/newview/llviewermessage.cpp
parentFixed windlight water notecards (.ww) not displaying their icon in inventory (diff)
downloadmeta-impy-4a62f50b88998756a0644842bd9c27438f3f097a.zip
meta-impy-4a62f50b88998756a0644842bd9c27438f3f097a.tar.gz
meta-impy-4a62f50b88998756a0644842bd9c27438f3f097a.tar.bz2
meta-impy-4a62f50b88998756a0644842bd9c27438f3f097a.tar.xz
Fixed windlight water/sky notecards opening the notecard preview window on creation
Diffstat (limited to '')
-rwxr-xr-xlinden/indra/newview/llviewermessage.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp
index af4b8d8..45280e4 100755
--- a/linden/indra/newview/llviewermessage.cpp
+++ b/linden/indra/newview/llviewermessage.cpp
@@ -910,7 +910,14 @@ void open_offer(const std::vector<LLUUID>& items, const std::string& from_name)
910 switch(asset_type) 910 switch(asset_type)
911 { 911 {
912 case LLAssetType::AT_NOTECARD: 912 case LLAssetType::AT_NOTECARD:
913 open_notecard((LLViewerInventoryItem*)item, std::string("Note: ") + item->getName(), LLUUID::null, show_keep_discard, LLUUID::null, FALSE); 913 // Don't show WindLight settings as notecards.
914 // *TODO: centralise all these damned .wl/.ww checks somewhere.
915 if((item->getName().length() > 2 && item->getName().compare(item->getName().length() - 3, 3, ".wl") != 0) &&
916 (item->getName().compare(item->getName().length() - 3, 3, ".ww") != 0))
917 {
918 open_notecard((LLViewerInventoryItem*)item, std::string("Note: ") + item->getName(),
919 LLUUID::null, show_keep_discard, LLUUID::null, FALSE);
920 }
914 break; 921 break;
915 case LLAssetType::AT_LANDMARK: 922 case LLAssetType::AT_LANDMARK:
916 open_landmark((LLViewerInventoryItem*)item, std::string("Landmark: ") + item->getName(), show_keep_discard, LLUUID::null, FALSE); 923 open_landmark((LLViewerInventoryItem*)item, std::string("Landmark: ") + item->getName(), show_keep_discard, LLUUID::null, FALSE);