Skip to content

Conversation

@akleshchev
Copy link
Contributor

'Multiple textures selected' label sometimes not present when opening picker for the first time.

Commit callback from inventory was dropping 'dirty' and 'tentative'.

when opening picker for the first time
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes an issue where the "Multiple textures selected" label sometimes doesn't appear when opening the texture picker for the first time. The root cause was that the commit callback from inventory was dropping 'dirty' and 'tentative' state information.

  • Refactored texture/material finding logic to return inventory items directly instead of just UUIDs
  • Fixed callback timing by setting selection callback after initial selection to preserve state
  • Added proper handling of no-copy texture detection during initialization

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
lltexturectrl.h Added new findInvItem method declaration and made findItemID const
lltexturectrl.cpp Implemented findInvItem method, refactored initialization logic, and fixed callback timing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@akleshchev akleshchev merged commit 79e4b7b into develop Sep 9, 2025
14 of 15 checks passed
@akleshchev akleshchev deleted the andreyk/viewer_prv428 branch September 9, 2025 17:01
@github-actions github-actions bot locked and limited conversation to collaborators Sep 9, 2025
@calebrosia
Copy link

Passed QA with Second Life Release 7.2.2.17688788720 (64bit)
Prims with multiple textures now show Multiple in the picker

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants