aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltooldraganddrop.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/lltooldraganddrop.cpp
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/newview/lltooldraganddrop.cpp')
-rw-r--r--linden/indra/newview/lltooldraganddrop.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/linden/indra/newview/lltooldraganddrop.cpp b/linden/indra/newview/lltooldraganddrop.cpp
index 3956402..6196927 100644
--- a/linden/indra/newview/lltooldraganddrop.cpp
+++ b/linden/indra/newview/lltooldraganddrop.cpp
@@ -2575,7 +2575,13 @@ EAcceptance LLToolDragAndDrop::dad3dUpdateInventoryCategory(
2575 LLViewerObject* obj, S32 face, MASK mask, BOOL drop) 2575 LLViewerObject* obj, S32 face, MASK mask, BOOL drop)
2576{ 2576{
2577 lldebugs << "LLToolDragAndDrop::dad3dUpdateInventoryCategory()" << llendl; 2577 lldebugs << "LLToolDragAndDrop::dad3dUpdateInventoryCategory()" << llendl;
2578 if(mSource != SOURCE_AGENT && mSource != SOURCE_LIBRARY) 2578 if (NULL==obj)
2579 {
2580 llwarns << "obj is NULL; aborting func with ACCEPT_NO" << llendl;
2581 return ACCEPT_NO;
2582 }
2583
2584 if (mSource != SOURCE_AGENT && mSource != SOURCE_LIBRARY)
2579 { 2585 {
2580 return ACCEPT_NO; 2586 return ACCEPT_NO;
2581 } 2587 }
@@ -2591,17 +2597,17 @@ EAcceptance LLToolDragAndDrop::dad3dUpdateInventoryCategory(
2591 LLInventoryModel::cat_array_t cats; 2597 LLInventoryModel::cat_array_t cats;
2592 LLInventoryModel::item_array_t items; 2598 LLInventoryModel::item_array_t items;
2593 gInventory.collectDescendentsIf(cat->getUUID(), 2599 gInventory.collectDescendentsIf(cat->getUUID(),
2594 cats, 2600 cats,
2595 items, 2601 items,
2596 LLInventoryModel::EXCLUDE_TRASH, 2602 LLInventoryModel::EXCLUDE_TRASH,
2597 droppable); 2603 droppable);
2598 cats.put(cat); 2604 cats.put(cat);
2599 if(droppable.countNoCopy() > 0) 2605 if(droppable.countNoCopy() > 0)
2600 { 2606 {
2601 llwarns << "*** Need to confirm this step" << llendl; 2607 llwarns << "*** Need to confirm this step" << llendl;
2602 } 2608 }
2603 LLViewerObject* root_object = obj; 2609 LLViewerObject* root_object = obj;
2604 if (obj && obj->getParent()) 2610 if (obj->getParent())
2605 { 2611 {
2606 LLViewerObject* parent_obj = (LLViewerObject*)obj->getParent(); 2612 LLViewerObject* parent_obj = (LLViewerObject*)obj->getParent();
2607 if (!parent_obj->isAvatar()) 2613 if (!parent_obj->isAvatar())