diff options
author | McCabe Maxsted | 2009-03-07 18:55:47 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-03-07 18:55:47 -0700 |
commit | 457f0d9f42f1c6d80b95435a5d2650474b96926b (patch) | |
tree | 638d7cfb51e43d590f1f1db708bd5c05e185d445 /linden/indra/newview/llinventorybridge.cpp | |
parent | Backported fix for VWR-8783, original patch by Gigs Taggart (diff) | |
download | meta-impy-457f0d9f42f1c6d80b95435a5d2650474b96926b.zip meta-impy-457f0d9f42f1c6d80b95435a5d2650474b96926b.tar.gz meta-impy-457f0d9f42f1c6d80b95435a5d2650474b96926b.tar.bz2 meta-impy-457f0d9f42f1c6d80b95435a5d2650474b96926b.tar.xz |
Landmark icons now correctly change color when visited (patch by Zi Ree--VWR-7896)
Diffstat (limited to 'linden/indra/newview/llinventorybridge.cpp')
-rw-r--r-- | linden/indra/newview/llinventorybridge.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/linden/indra/newview/llinventorybridge.cpp b/linden/indra/newview/llinventorybridge.cpp index 34277f7..9506786 100644 --- a/linden/indra/newview/llinventorybridge.cpp +++ b/linden/indra/newview/llinventorybridge.cpp | |||
@@ -2606,7 +2606,7 @@ void LLLandmarkBridge::performAction(LLFolderView* folder, LLInventoryModel* mod | |||
2606 | // because you'll probably arrive at a telehub instead | 2606 | // because you'll probably arrive at a telehub instead |
2607 | if( gFloaterWorldMap ) | 2607 | if( gFloaterWorldMap ) |
2608 | { | 2608 | { |
2609 | gFloaterWorldMap->trackLandmark( item->getAssetUUID() ); | 2609 | gFloaterWorldMap->trackLandmark(item->getUUID()); // remember this must be the item UUID, not the asset UUID |
2610 | } | 2610 | } |
2611 | } | 2611 | } |
2612 | } | 2612 | } |
@@ -2651,20 +2651,19 @@ void open_landmark(LLViewerInventoryItem* inv_item, | |||
2651 | 2651 | ||
2652 | static void open_landmark_callback(S32 option, void* data) | 2652 | static void open_landmark_callback(S32 option, void* data) |
2653 | { | 2653 | { |
2654 | LLUUID* asset_idp = (LLUUID*)data; | 2654 | LLInventoryItem* itemp = (LLInventoryItem*)data; |
2655 | if (option == 0) | 2655 | if (option == 0) |
2656 | { | 2656 | { |
2657 | // HACK: This is to demonstrate teleport on double click for landmarks | 2657 | // HACK: This is to demonstrate teleport on double click for landmarks |
2658 | gAgent.teleportViaLandmark( *asset_idp ); | 2658 | gAgent.teleportViaLandmark( itemp->getAssetUUID() ); |
2659 | 2659 | ||
2660 | // we now automatically track the landmark you're teleporting to | 2660 | // we now automatically track the landmark you're teleporting to |
2661 | // because you'll probably arrive at a telehub instead | 2661 | // because you'll probably arrive at a telehub instead |
2662 | if( gFloaterWorldMap ) | 2662 | if( gFloaterWorldMap ) |
2663 | { | 2663 | { |
2664 | gFloaterWorldMap->trackLandmark( *asset_idp ); | 2664 | gFloaterWorldMap->trackLandmark( itemp->getUUID() ); // remember this is the item UUID not the asset UUID |
2665 | } | 2665 | } |
2666 | } | 2666 | } |
2667 | delete asset_idp; | ||
2668 | } | 2667 | } |
2669 | 2668 | ||
2670 | void LLLandmarkBridge::openItem() | 2669 | void LLLandmarkBridge::openItem() |
@@ -2675,9 +2674,9 @@ void LLLandmarkBridge::openItem() | |||
2675 | // Opening (double-clicking) a landmark immediately teleports, | 2674 | // Opening (double-clicking) a landmark immediately teleports, |
2676 | // but warns you the first time. | 2675 | // but warns you the first time. |
2677 | // open_landmark(item, std::string(" ") + getPrefix() + item->getName(), FALSE); | 2676 | // open_landmark(item, std::string(" ") + getPrefix() + item->getName(), FALSE); |
2678 | LLUUID* asset_idp = new LLUUID(item->getAssetUUID()); | ||
2679 | LLAlertDialog::showXml("TeleportFromLandmark", | 2677 | LLAlertDialog::showXml("TeleportFromLandmark", |
2680 | open_landmark_callback, (void*)asset_idp); | 2678 | // send the full inventory item so the callback can use both asset UUID and inventory item id |
2679 | open_landmark_callback, (void*)item); | ||
2681 | } | 2680 | } |
2682 | } | 2681 | } |
2683 | 2682 | ||