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

Add support for visualizing bones in Advanced Import Settings #76818

Conversation

jeronimo-schreyer
Copy link
Contributor

This commit adds support for visualizing bones in Advanced Import Settings. When a node with the Skeleton3D type is selected, the bones are drawn using lines or octahedrons to provide a clearer reference to their position.

Update
editor/import/scene_import_settings.cpp
editor/import/scene_import_settings.h

@akien-mga
Copy link
Member

akien-mga commented May 8, 2023

FYI "bugsquad edit" means an edit to another user's post by a member of Godot's bugsquad or bug triage team. So it doesn't make sense to use it in your own PRs ;)

@jeronimo-schreyer
Copy link
Contributor Author

Oh! I thought it was to connect it to a proposal in the other repo
sorry about that

@jeronimo-schreyer jeronimo-schreyer requested a review from a team as a code owner May 24, 2023 21:28
@jeronimo-schreyer jeronimo-schreyer force-pushed the add_skeleton_mesh_in_3d_resource_importer branch 3 times, most recently from 8ce2e7e to 5c6ae86 Compare May 25, 2023 16:19
@jeronimo-schreyer
Copy link
Contributor Author

I added a struct to hold the materials but now is not passing the check

@jeronimo-schreyer jeronimo-schreyer force-pushed the add_skeleton_mesh_in_3d_resource_importer branch 3 times, most recently from f6a7ae8 to 74cc346 Compare May 26, 2023 04:29
@jeronimo-schreyer jeronimo-schreyer force-pushed the add_skeleton_mesh_in_3d_resource_importer branch from 74cc346 to 130aedc Compare May 27, 2023 20:45
@fire
Copy link
Member

fire commented May 27, 2023

It is failing here:

 #12 0x55e24ea7773e in Ref<ShaderMaterial>::~Ref() (/home/runner/work/godot/godot/bin/godot.linuxbsd.editor.dev.double.x86_64.san+0x47a0a73e)
    #13 0x55e2519078d0 in Skeleton3DGizmoPlugin::SelectionMaterials::~SelectionMaterials() (/home/runner/work/godot/godot/bin/godot.linuxbsd.editor.dev.double.x86_64.san+0x4a89a8d0)

@jeronimo-schreyer jeronimo-schreyer force-pushed the add_skeleton_mesh_in_3d_resource_importer branch 4 times, most recently from ce9cd67 to 786b5e1 Compare May 28, 2023 00:35
@jeronimo-schreyer jeronimo-schreyer requested review from a team as code owners May 28, 2023 00:35
@jeronimo-schreyer
Copy link
Contributor Author

oh oooooh...... since finally checks had passed I wanted to squash merge commits and my work..... I guess I kinda f** up right

@jeronimo-schreyer jeronimo-schreyer force-pushed the add_skeleton_mesh_in_3d_resource_importer branch 3 times, most recently from fa10d72 to 513b824 Compare May 28, 2023 02:59
@jeronimo-schreyer jeronimo-schreyer force-pushed the add_skeleton_mesh_in_3d_resource_importer branch 3 times, most recently from 752d498 to bbba3dd Compare May 29, 2023 13:22
…tings.

When a node with the Skeleton3D type is selected, the bones are drawn using lines or octahedrons to provide a clearer reference to their position.
Refactored Skeleton3DGizmoPlugin::redraw now uses a static function to generate bone meshes

Update
editor/import/scene_import_settings.cpp
editor/import/scene_import_settings.h
editor/plugins/skeleton_3d_editor_plugin.h
editor/plugins/skeleton_3d_editor_plugin.cpp
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.

Show skeleton bones in the Advanced Import Settings preview
5 participants