Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@riknoll
Copy link
Member

@riknoll riknoll commented Oct 28, 2025

fixes microsoft/pxt-arcade#6943

in order to handle loading projects where a tile might not exist, i added a localTile property on the tileset field editor a while ago to hold the selected asset if it wasn't in the current tilemap project (e.g. because of copy/paste or what have you). this local property wasn't getting cleared when an actual tile in the project was selected and was causing duplicate and copy/paste to always use the first selected value, which was transparency.

also fixes the other bug we saw when trying to repro the linked issue where tiles from the gallery were rendering as text rather than as images. the bug here was that blockly requires the alt attribute to be defined in the image object when rendering and the displayName function doesn't return anything for gallery tiles. as a fix, i'm passing the raw id which is just the qualified name

@riknoll riknoll requested a review from a team October 28, 2025 17:38
@riknoll riknoll enabled auto-merge (squash) October 28, 2025 19:40
Copy link
Contributor

@aznhassan aznhassan left a comment

Choose a reason for hiding this comment

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

:shipit:

@riknoll riknoll merged commit 413cf48 into master Oct 29, 2025
20 checks passed
@riknoll riknoll deleted the dev/riknoll/arcade-fix-tileset-duplicate branch October 29, 2025 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicating sprites with tilesets does not duplicate tileset

4 participants