Skip to content

Block Canvas: Reuse saved block scene resource#176

Merged
dbnicholson merged 1 commit intomainfrom
reuse-existing-resources
Jul 30, 2024
Merged

Block Canvas: Reuse saved block scene resource#176
dbnicholson merged 1 commit intomainfrom
reuse-existing-resources

Conversation

@manuq
Copy link
Copy Markdown
Contributor

@manuq manuq commented Jul 30, 2024

By simply assigning it to the scene resource property when loading the tree.

Follow up of 01ab76c which already removed all resource regeneration except when loading the canvas.

By simply assigning it to the scene resource property when loading the
tree.

Follow up of 01ab76c which already removed all resource regeneration
except when loading the canvas.
@manuq
Copy link
Copy Markdown
Contributor Author

manuq commented Jul 30, 2024

I decided to split this from #164.

A way to test this is to load the Pong example, move a block, save the scene, and then check the diff. Only the position should be the noticeable change (besides outdated format):
Captura desde 2024-07-30 16-48-06

Copy link
Copy Markdown
Member

@dbnicholson dbnicholson left a comment

Choose a reason for hiding this comment

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

Very nice!

@dbnicholson dbnicholson merged commit 894ea84 into main Jul 30, 2024
@dbnicholson dbnicholson deleted the reuse-existing-resources branch July 30, 2024 20:05
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.

2 participants