STORM-288 : merge with vewer-development
commit
37b97d2f6d
|
|
@ -68,10 +68,22 @@ private:
|
|||
|
||||
void LLItemPropertiesObserver::changed(U32 mask)
|
||||
{
|
||||
// if there's a change we're interested in.
|
||||
if((mask & (LLInventoryObserver::LABEL | LLInventoryObserver::INTERNAL | LLInventoryObserver::REMOVE)) != 0)
|
||||
const std::set<LLUUID>& mChangedItemIDs = gInventory.getChangedIDs();
|
||||
std::set<LLUUID>::const_iterator it;
|
||||
|
||||
const LLUUID& object_id = mFloater->getObjectID();
|
||||
|
||||
for (it = mChangedItemIDs.begin(); it != mChangedItemIDs.end(); it++)
|
||||
{
|
||||
mFloater->dirty();
|
||||
// set dirty for 'item profile panel' only if changed item is the item for which 'item profile panel' is shown (STORM-288)
|
||||
if (*it == object_id)
|
||||
{
|
||||
// if there's a change we're interested in.
|
||||
if((mask & (LLInventoryObserver::LABEL | LLInventoryObserver::INTERNAL | LLInventoryObserver::REMOVE)) != 0)
|
||||
{
|
||||
mFloater->dirty();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -179,6 +191,11 @@ void LLSidepanelItemInfo::setItemID(const LLUUID& item_id)
|
|||
mItemID = item_id;
|
||||
}
|
||||
|
||||
const LLUUID& LLSidepanelItemInfo::getObjectID() const
|
||||
{
|
||||
return mObjectID;
|
||||
}
|
||||
|
||||
void LLSidepanelItemInfo::reset()
|
||||
{
|
||||
LLSidepanelInventorySubpanel::reset();
|
||||
|
|
|
|||
|
|
@ -54,6 +54,8 @@ public:
|
|||
void setItemID(const LLUUID& item_id);
|
||||
void setEditMode(BOOL edit);
|
||||
|
||||
const LLUUID& getObjectID() const;
|
||||
|
||||
protected:
|
||||
/*virtual*/ void refresh();
|
||||
/*virtual*/ void save();
|
||||
|
|
|
|||
Loading…
Reference in New Issue