File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1012,6 +1012,8 @@ void LLFloaterTexturePicker::onBtnSetToDefault(void* userdata)
10121012 {
10131013 self->setImageID ( self->getDefaultImageAssetID () );
10141014 self->setTentative (false );
1015+ // Deselect in case inventory has a selected item with the same id
1016+ self->mInventoryPanel ->getRootFolder ()->clearSelection ();
10151017 }
10161018 self->commitIfImmediateSet ();
10171019}
@@ -1023,6 +1025,8 @@ void LLFloaterTexturePicker::onBtnBlank(void* userdata)
10231025 self->setCanApply (true , true );
10241026 self->setImageID ( self->getBlankImageAssetID () );
10251027 self->setTentative (false );
1028+ // Deselect in case inventory has a selected item with the same id
1029+ self->mInventoryPanel ->getRootFolder ()->clearSelection ();
10261030 self->commitIfImmediateSet ();
10271031}
10281032
@@ -1034,6 +1038,8 @@ void LLFloaterTexturePicker::onBtnNone(void* userdata)
10341038 self->setCanApply (true , true );
10351039 self->setImageID ( LLUUID::null );
10361040 self->setTentative (false );
1041+ // Deselect in case inventory has a selected item with null id
1042+ self->mInventoryPanel ->getRootFolder ()->clearSelection ();
10371043 self->commitIfImmediateSet ();
10381044}
10391045
You can’t perform that action at this time.
0 commit comments