secondlife / secondlife/viewer

Material becomes offset when scaling the object.

Open
#5,648 0 comments 0 reactions 1 assignee View on GitHub

@marchcat is already working on this.

Since May 4, 2026.

bug team:viewer
Dominant language
C++
Stars
299
Forks
146
Avg merge
1d 9h
Merged PRs (30d)
88

Description

Environment

Second Life Release 26.2.0.24254827122
Win11 / OSX

Description

This is a corner case that is probably rarely experienced.
The bug doesn't happen if the Mapping is Default.
It doesn't happen unless the material is rotated.
It doesn't happen if the scale is changed by typing in a new size or by the size spinner.

Reproduction steps
  1. Add a PBR material to a box.
  2. Set the mapping to Planar
  3. Set the material Rotation to 90. (other rotations probably reproduce it, but not 0 rotation)
  4. Ensure Stretch Textures checkbox is check in the Edit tools
  5. Resize the box a few times by dragging the resizing handles. (ctrl+shift to show the handles)
  6. Reset the box back to the default size.

Observed: The material has been offset.
Video: https://github.com/user-attachments/assets/3ec430ac-4eea-4a16-bad8-183f423603cc

Expected: The material should not be offset.


This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting /reward 100 (replace 100 with the amount).
🕵️‍♂️ If someone starts working on this issue to earn the rewards, they can comment /try to let everyone know!
🙌 And when they open the PR, they can comment /claim #5648 either in the PR description or in a PR's comment.

🪙 Also, everyone can tip any user commenting /tip 20 @Dan-Linden (replace 20 with the amount, and @Dan-Linden with the user to tip).

📖 If you want to learn more, check out our documentation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.