mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix creating outline for skinned meshes
This commit is contained in:
parent
978b38797b
commit
fe42467d17
1 changed files with 7 additions and 0 deletions
|
|
@ -542,6 +542,13 @@ void MeshInstance3DEditor::_create_outline_mesh() {
|
|||
|
||||
MeshInstance3D *mi = memnew(MeshInstance3D);
|
||||
mi->set_mesh(mesho);
|
||||
|
||||
Node *skeleton = node->get_node_or_null(node->get_skeleton_path());
|
||||
if (skeleton && node->get_skin().is_valid()) {
|
||||
mi->set_skin(node->get_skin());
|
||||
mi->set_skeleton_path("../" + node->get_path_to(skeleton));
|
||||
}
|
||||
|
||||
Node *owner = get_tree()->get_edited_scene_root();
|
||||
|
||||
EditorUndoRedoManager *ur = EditorUndoRedoManager::get_singleton();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue