Skip to content

Block Canvas: Reuse saved block scene resource #176

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 1 commit into from
Jul 30, 2024

Conversation

manuq
Copy link
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.

Verified

This commit was signed with the committer’s verified signature.
GromNaN Jérôme Tamarelle
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
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
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
2 checks passed
@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.

None yet

2 participants