Skip to content

Fix various issues with snapshot upload fee calculation #2688

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

Merged
merged 4 commits into from
Sep 26, 2024

Conversation

Ansariel
Copy link
Contributor

  • Removed orphaned LLPanelOutfitSnapshotInventory
  • Calculation of upload in snapshot to inventory panel for insufficient funds was based on preview image size instead of encoded image size, resulting in upload fees of L$50 for textures <= 1024x1024 pixels
  • Calculation on the options button had the same issue plus additionally was using referring to the previously used snapshot type which isn't necessarily the same as snapshot to inventory. Removed the upload fee from the button.
  • Added back display of calculated upload fee on the snapshot to inventory panel itself. The fee is updated if the image size changes to always display the correct upload fee.

…ed image size and display upload cost to user
… based on previously selected snapshot type and not necessarily snapshot to inventory
@github-actions github-actions bot added the c/cpp label Sep 25, 2024
…n is "Current Window" to determine correct image size and upload cost
@Ansariel Ansariel force-pushed the develop-snapshot-fixes branch from 05dbe68 to 31e8a25 Compare September 25, 2024 23:35
Copy link
Contributor

@marchcat marchcat left a comment

Choose a reason for hiding this comment

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

Thank you!

@marchcat marchcat merged commit 27e282d into secondlife:develop Sep 26, 2024
12 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2024
@marchcat marchcat linked an issue Sep 26, 2024 that may be closed by this pull request
@Ansariel Ansariel deleted the develop-snapshot-fixes branch October 5, 2024 13:48
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.

PR: Fix various issues with snapshot upload fee calculation
2 participants