Skip to content
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

Move 2D-only editor plugins to their own folder #83161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aaronfranke
Copy link
Member

@aaronfranke aaronfranke commented Oct 11, 2023

This PR moves 2D-only editor plugins to their own folder. Specifically, this folder contains files only needed for editing Node2D, but not Node3D or Control nodes (so canvas_item_editor_plugin does not go in this folder). This PR is similar to how we have scene/2d folder for 2D nodes, and is in a similar vain to several other PRs I've opened.

Q: Why these specific files? How do you know to put these files in a folder and that you're not missing any?

A: I have another branch where I have the ability to completely disable Node2D in editor builds. This gives me evidence that the files I've moved are the correct ones. I don't expect that to get merged, but I do think file organization is worth upstreaming, it's more organized to have the 2D editor files all together.

Screenshot 2023-10-11 at 1 58 13 AM

Q: What about moving 3D-only editor plugins to their own folder?

A: The 3D editor code is much more deeply integrated, it would be a much larger task to do like I did above with creating a branch that can compile the editor without 3D as evidence for which files should be moved where. This is something I would like to have eventually, though, for improved separation, isolation, and organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant