-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
Ignore CI failures, it works — it's editor only changes :D |
There was a problem hiding this 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))) |
There was a problem hiding this comment.
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))) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Relies on defold/defold#10812