-
-
Notifications
You must be signed in to change notification settings - Fork 22.3k
Fix creating outline for skinned meshes #106076
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
base: master
Are you sure you want to change the base?
Fix creating outline for skinned meshes #106076
Conversation
Hello! Thanks for contributing. I assigned animation maintainers for review as they're most familiar with mesh skinning. A small form nitpick: The commit message should be amended to be a proper sentence in English (like I did with the PR title). See https://github.com/godotengine/godot/blob/master/CONTRIBUTING.md#format-your-commit-messages-with-readability-in-mind and PR workflow for details on how to format and amend commits. |
sorry i'm new to this |
@@ -542,6 +542,13 @@ void MeshInstance3DEditor::_create_outline_mesh() { | |||
|
|||
MeshInstance3D *mi = memnew(MeshInstance3D); | |||
mi->set_mesh(mesho); | |||
|
|||
Node *skeleton = node->get_node(node->get_skeleton_path()); |
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 seems ok, we have a new MeshInstance3D and we either use the existing path or assume that it's the parent node (as a skeleton3d).
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.
precisely
Closes #106074
now creating an outline mesh for a mesh with skim property will share the skim and skeleton properties for the outline mesh