diff options
Diffstat (limited to 'linden/indra/newview/llinventorybridge.cpp')
-rw-r--r-- | linden/indra/newview/llinventorybridge.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/linden/indra/newview/llinventorybridge.cpp b/linden/indra/newview/llinventorybridge.cpp index 9506786..34277f7 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->getUUID()); // remember this must be the item UUID, not the asset UUID | 2609 | gFloaterWorldMap->trackLandmark( item->getAssetUUID() ); |
2610 | } | 2610 | } |
2611 | } | 2611 | } |
2612 | } | 2612 | } |
@@ -2651,19 +2651,20 @@ 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 | LLInventoryItem* itemp = (LLInventoryItem*)data; | 2654 | LLUUID* asset_idp = (LLUUID*)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( itemp->getAssetUUID() ); | 2658 | gAgent.teleportViaLandmark( *asset_idp ); |
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( itemp->getUUID() ); // remember this is the item UUID not the asset UUID | 2664 | gFloaterWorldMap->trackLandmark( *asset_idp ); |
2665 | } | 2665 | } |
2666 | } | 2666 | } |
2667 | delete asset_idp; | ||
2667 | } | 2668 | } |
2668 | 2669 | ||
2669 | void LLLandmarkBridge::openItem() | 2670 | void LLLandmarkBridge::openItem() |
@@ -2674,9 +2675,9 @@ void LLLandmarkBridge::openItem() | |||
2674 | // Opening (double-clicking) a landmark immediately teleports, | 2675 | // Opening (double-clicking) a landmark immediately teleports, |
2675 | // but warns you the first time. | 2676 | // but warns you the first time. |
2676 | // open_landmark(item, std::string(" ") + getPrefix() + item->getName(), FALSE); | 2677 | // open_landmark(item, std::string(" ") + getPrefix() + item->getName(), FALSE); |
2678 | LLUUID* asset_idp = new LLUUID(item->getAssetUUID()); | ||
2677 | LLAlertDialog::showXml("TeleportFromLandmark", | 2679 | LLAlertDialog::showXml("TeleportFromLandmark", |
2678 | // send the full inventory item so the callback can use both asset UUID and inventory item id | 2680 | open_landmark_callback, (void*)asset_idp); |
2679 | open_landmark_callback, (void*)item); | ||
2680 | } | 2681 | } |
2681 | } | 2682 | } |
2682 | 2683 | ||