From 4d87303e78c1accde85b217b325e0c08930b0c4c Mon Sep 17 00:00:00 2001 From: Josh Bell Date: Fri, 14 Dec 2007 23:04:55 +0000 Subject: svn merge -c 73823 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance-4 --> release Cherry pick fix for showstopper fix: DEV-5701 / SVC-930: Prims set for sale - prices are incorrectly set when multiple prims taken to inventory and rezzed --- indra/llinventory/llinventory.h | 3 +++ indra/newview/llfloaterproperties.cpp | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'indra') diff --git a/indra/llinventory/llinventory.h b/indra/llinventory/llinventory.h index 065c82ddd4..5ff7a1e72b 100644 --- a/indra/llinventory/llinventory.h +++ b/indra/llinventory/llinventory.h @@ -150,6 +150,9 @@ public: // track attachment points. II_FLAGS_OBJECT_SLAM_PERM = 0x100, + // flag to indicate that the object sale information has been changed. + II_FLAGS_OBJECT_SLAM_SALE = 0x1000, + // These flags specify which permissions masks to overwrite // upon rez. Normally, if no permissions slam (above) or // overwrite flags are set, the asset's permissions are diff --git a/indra/newview/llfloaterproperties.cpp b/indra/newview/llfloaterproperties.cpp index 538e8415a0..82f72103f7 100644 --- a/indra/newview/llfloaterproperties.cpp +++ b/indra/newview/llfloaterproperties.cpp @@ -867,6 +867,12 @@ void LLFloaterProperties::updateSaleInfo() && item->isComplete()) { LLPointer new_item = new LLViewerInventoryItem(item); + + // Force an update on the sale price. + U32 flags = new_item->getFlags(); + flags |= LLInventoryItem::II_FLAGS_OBJECT_SLAM_SALE; + new_item->setFlags(flags); + new_item->setSaleInfo(sale_info); if(mObjectID.isNull()) { -- cgit v1.2.3