Skip to content

Edit GUI spine scenes using editor scripts #207

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 5 commits into from
Jun 11, 2025
Merged

Edit GUI spine scenes using editor scripts #207

merged 5 commits into from
Jun 11, 2025

Conversation

vlaaad
Copy link
Contributor

@vlaaad vlaaad commented Jun 9, 2025

@vlaaad
Copy link
Contributor Author

vlaaad commented Jun 9, 2025

Ignore CI failures, it works — it's editor only changes :D

Copy link
Contributor

@matgis matgis left a comment

Choose a reason for hiding this comment

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

Maybe move registration state to the workspace to prevent leakage to subsequent editor tests after loading the spine plugin?

gui/GuiSceneNode :spine-scenes
:add {SpineSceneNode (partial g/expand-ec attach-spine-scene-to-gui-scene)}
:get (fn get-spine-scenes [gui-scene-node {:keys [basis] :as evaluation-context}]
(attachment/nodes-getter (gui-scene-node->spine-scenes-node basis gui-scene-node) evaluation-context)))
Copy link
Contributor

Choose a reason for hiding this comment

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

This registration will leak state to subsequent editor tests. I think we should store this state in the workspace similar to how we do with resource-types. We also have a similar issue with gui/register-node-type-info! that we have hacks in the tests for. Let's that this opportunity to address both issues!

(g/connect spine-scene :build-errors spine-scenes-node :build-errors)
(g/connect spine-scene :node-outline spine-scenes-node :child-outlines)
(g/connect spine-scene :name spine-scenes-node :names)
(g/connect spine-scenes-node :name-counts spine-scene :name-counts)))
Copy link
Contributor

Choose a reason for hiding this comment

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

Indentation is messed up. Do you need to add the extension-spine repo as a :source-path? I posted in the Slack about this a few days ago.

@vlaaad vlaaad requested a review from matgis June 10, 2025 12:04
Copy link
Contributor

@matgis matgis left a comment

Choose a reason for hiding this comment

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

LGTM!

@vlaaad vlaaad merged commit c40e35b into main Jun 11, 2025
17 checks passed
@vlaaad vlaaad deleted the issue-8054 branch June 11, 2025 07:30
AGulev added a commit that referenced this pull request Jul 3, 2025
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