aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llinventoryview.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-12 14:59:33 -0500
committerJacek Antonelli2008-09-12 14:59:39 -0500
commit80a8bab2a9dd8e77262b001af973212a6cba4a5a (patch)
tree170168232fd4e2eec5f15295a9445535969cdb76 /linden/indra/newview/llinventoryview.cpp
parentSecond Life viewer sources 1.21.1-RC (diff)
downloadmeta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.zip
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.gz
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.bz2
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.xz
Second Life viewer sources 1.21.2-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llinventoryview.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/linden/indra/newview/llinventoryview.cpp b/linden/indra/newview/llinventoryview.cpp
index 2150b70..f9dd70d 100644
--- a/linden/indra/newview/llinventoryview.cpp
+++ b/linden/indra/newview/llinventoryview.cpp
@@ -1506,8 +1506,6 @@ void LLInventoryPanel::buildNewViews(const LLUUID& id)
1506{ 1506{
1507 LLFolderViewItem* itemp = NULL; 1507 LLFolderViewItem* itemp = NULL;
1508 LLInventoryObject* objectp = gInventory.getObject(id); 1508 LLInventoryObject* objectp = gInventory.getObject(id);
1509 S32 i;
1510 S32 count;
1511 1509
1512 if (objectp) 1510 if (objectp)
1513 { 1511 {
@@ -1577,11 +1575,11 @@ void LLInventoryPanel::buildNewViews(const LLUUID& id)
1577 LLViewerInventoryCategory::cat_array_t* categories; 1575 LLViewerInventoryCategory::cat_array_t* categories;
1578 LLViewerInventoryItem::item_array_t* items; 1576 LLViewerInventoryItem::item_array_t* items;
1579 1577
1580 mInventory->getDirectDescendentsOf(id, categories, items); 1578 mInventory->lockDirectDescendentArrays(id, categories, items);
1581 if(categories) 1579 if(categories)
1582 { 1580 {
1583 count = categories->count(); 1581 S32 count = categories->count();
1584 for(i = 0; i < count; ++i) 1582 for(S32 i = 0; i < count; ++i)
1585 { 1583 {
1586 LLInventoryCategory* cat = categories->get(i); 1584 LLInventoryCategory* cat = categories->get(i);
1587 buildNewViews(cat->getUUID()); 1585 buildNewViews(cat->getUUID());
@@ -1589,13 +1587,14 @@ void LLInventoryPanel::buildNewViews(const LLUUID& id)
1589 } 1587 }
1590 if(items) 1588 if(items)
1591 { 1589 {
1592 count = items->count(); 1590 S32 count = items->count();
1593 for(i = 0; i < count; ++i) 1591 for(S32 i = 0; i < count; ++i)
1594 { 1592 {
1595 LLInventoryItem* item = items->get(i); 1593 LLInventoryItem* item = items->get(i);
1596 buildNewViews(item->getUUID()); 1594 buildNewViews(item->getUUID());
1597 } 1595 }
1598 } 1596 }
1597 mInventory->unlockDirectDescendentArrays(id);
1599 } 1598 }
1600} 1599}
1601 1600