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/lltooldraganddrop.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/lltooldraganddrop.cpp')
-rw-r--r-- | linden/indra/newview/lltooldraganddrop.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/newview/lltooldraganddrop.cpp b/linden/indra/newview/lltooldraganddrop.cpp index ffa124f..3956402 100644 --- a/linden/indra/newview/lltooldraganddrop.cpp +++ b/linden/indra/newview/lltooldraganddrop.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 |
@@ -878,7 +879,7 @@ void LLToolDragAndDrop::dragOrDrop( S32 x, S32 y, MASK mask, BOOL drop, | |||
878 | 879 | ||
879 | BOOL handled = FALSE; | 880 | BOOL handled = FALSE; |
880 | 881 | ||
881 | LLView* top_view = gViewerWindow->getTopView(); | 882 | LLView* top_view = gViewerWindow->getTopCtrl(); |
882 | LLViewerInventoryItem* item; | 883 | LLViewerInventoryItem* item; |
883 | LLViewerInventoryCategory* cat; | 884 | LLViewerInventoryCategory* cat; |
884 | 885 | ||
@@ -1238,6 +1239,7 @@ BOOL LLToolDragAndDrop::handleDropTextureProtections(LLViewerObject* hit_obj, | |||
1238 | return FALSE; | 1239 | return FALSE; |
1239 | } | 1240 | } |
1240 | } | 1241 | } |
1242 | std::cout << "ASSET ID: " << new_item->getAssetUUID() << "\n"; | ||
1241 | hit_obj->updateInventory(new_item, TASK_INVENTORY_ASSET_KEY, true); | 1243 | hit_obj->updateInventory(new_item, TASK_INVENTORY_ASSET_KEY, true); |
1242 | } | 1244 | } |
1243 | else if(!item->getPermissions().allowOperationBy(PERM_TRANSFER, | 1245 | else if(!item->getPermissions().allowOperationBy(PERM_TRANSFER, |
@@ -1251,6 +1253,7 @@ BOOL LLToolDragAndDrop::handleDropTextureProtections(LLViewerObject* hit_obj, | |||
1251 | // *FIX: may want to make sure agent can paint hit_obj. | 1253 | // *FIX: may want to make sure agent can paint hit_obj. |
1252 | 1254 | ||
1253 | // make sure the object has the texture in it's inventory. | 1255 | // make sure the object has the texture in it's inventory. |
1256 | std::cout << "ASSET ID: " << new_item->getAssetUUID() << "\n"; | ||
1254 | hit_obj->updateInventory(new_item, TASK_INVENTORY_ASSET_KEY, true); | 1257 | hit_obj->updateInventory(new_item, TASK_INVENTORY_ASSET_KEY, true); |
1255 | } | 1258 | } |
1256 | return TRUE; | 1259 | return TRUE; |
@@ -2327,7 +2330,7 @@ EAcceptance LLToolDragAndDrop::dad3dTextureObject( | |||
2327 | } | 2330 | } |
2328 | if(!obj->permModify()) | 2331 | if(!obj->permModify()) |
2329 | { | 2332 | { |
2330 | return ACCEPT_NO_LOCKED; | 2333 | return ACCEPT_NO_LOCKED; |
2331 | } | 2334 | } |
2332 | //If texture !copyable don't texture or you'll never get it back. | 2335 | //If texture !copyable don't texture or you'll never get it back. |
2333 | if(!item->getPermissions().allowCopyBy(gAgent.getID())) | 2336 | if(!item->getPermissions().allowCopyBy(gAgent.getID())) |