-
Notifications
You must be signed in to change notification settings - Fork 64
Inventory favorites #1840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inventory favorites #1840
Conversation
To not acuse confusion with favorites
image is WIP
notecards do not need to store 'favorite' flag
getChangedIDs is only accurate in scope of observer's callback, don't use it onIdle. getObject call made no sense, item was warrantied to be LLViewerInventoryItem and would only be AT_CATEGORY if it is a link, making the following cast to a category dangerous
For now marking originals, pointless to marks links in COF, needs a revision due to inconsistency with inventory
Search forces a refresh - can search items that don't exist yet Always notify parent of rect changes despite visibility (alterantively - rearrange on open)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, this one is big.
I'd suggest building this change as a project viewer first in order to test it separately, And then, probably, just skip Maint C and merge it right into develop
.
It's already partially tested since QA had to use it to check server changes, and even if there are issues, impact should be minimal. |
indra/newview/llappearancemgr.cpp
Outdated
@@ -2042,7 +2042,7 @@ bool LLAppearanceMgr::getCanReplaceCOF(const LLUUID& outfit_cat_id) | |||
} | |||
|
|||
// Moved from LLWearableList::ContextMenu for wider utility. | |||
bool LLAppearanceMgr::canAddWearables(const uuid_vec_t& item_ids) const | |||
bool LLAppearanceMgr::canAddWearables(const uuid_vec_t& item_ids, bool warn_on_type_mismarch) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"mismarch" typo
void LLFloaterInventorySettings::updateColorSwatch() | ||
{ | ||
bool val = getChild<LLUICtrl>("favorites_color")->getEnabled(); | ||
getChild<LLUICtrl>("favorites_color")->setEnabled(val); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what happens here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should have been getvalue() then getChild("favorites_swatch")->setEnabled(val);
|
||
if (obj && obj->getIsLinkType()) | ||
{ | ||
obj = gInventory.getObject(obj_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use 'obj->getLinkedUUID()' here as id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
LLInventoryObject* obj = gInventory.getObject(obj_id); | ||
if (obj && obj->getIsLinkType()) | ||
{ | ||
obj = gInventory.getObject(obj_id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question as above ('obj->getLinkedUUID()')
indra/newview/llinventoryfunctions.h
Outdated
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
// Class LLFavoritesCollector | ||
// | ||
// Simple class that collects calling cards that are not null, and not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No more calling cards collectors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good, but probably couple minor changes are required.
Thank you! Will fix those. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it!
No description provided.