summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authornyx@NyxTop <nyx@NyxTop>2009-10-29 15:12:13 -0400
committernyx@NyxTop <nyx@NyxTop>2009-10-29 15:12:13 -0400
commitbc9808a01710ab21d60df3b6652b500f31f1c40e (patch)
tree6cb766e726e154b149468461ba0b7b14d2e37af6 /indra
parent95031093c795f3a97cdc673c7b7807c944742ab8 (diff)
EXT-1919 Appearance editor param sliders ineffective after save
Visual param sliders were not being updated to affect the new wearable created after a save was performed. Created a reset() function to do this which gets called after the new object is created. Code reviewed by Seraph
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llwearable.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/indra/newview/llwearable.cpp b/indra/newview/llwearable.cpp
index a091028ec2..d70b3a26a9 100644
--- a/indra/newview/llwearable.cpp
+++ b/indra/newview/llwearable.cpp
@@ -668,21 +668,7 @@ void LLWearable::writeToAvatar( BOOL set_by_user, BOOL update_customize_floater
if( gFloaterCustomize && update_customize_floater )
{
- LLViewerInventoryItem* item;
- // MULTI_WEARABLE:
- item = (LLViewerInventoryItem*)gInventory.getItem(gAgentWearables.getWearableItemID(mType,0));
- U32 perm_mask = PERM_NONE;
- BOOL is_complete = FALSE;
- if(item)
- {
- perm_mask = item->getPermissions().getMaskOwner();
- is_complete = item->isComplete();
- if(!is_complete)
- {
- item->fetchFromServer();
- }
- }
- gFloaterCustomize->setWearable(mType, this, perm_mask, is_complete);
+ gFloaterCustomize->setWearable(mType, 0);
gFloaterCustomize->setCurrentWearableType( mType );
}