mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #159084: Armature join operator leaves armature in edit mode
The issue was in the `ED_armature_join_objects_exec` function. This iterates over all selected armatures and brings them to edit mode with `ED_armature_to_edit`. However it never moved them out of edit mode which is why they were left in a broken state. This also fixes a crash when you try to enter pose mode with that invalid armature. Pull Request: https://projects.blender.org/blender/blender/pulls/159952
This commit is contained in:
parent
b1a42b278d
commit
94b878e221
1 changed files with 4 additions and 0 deletions
|
|
@ -529,6 +529,10 @@ wmOperatorStatus ED_armature_join_objects_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
}
|
||||
|
||||
/* Bring armature out of edit mode. See #159084. */
|
||||
ED_armature_from_edit(bmain, curarm);
|
||||
ED_armature_edit_free(curarm);
|
||||
|
||||
/* Free the old object data */
|
||||
ed::object::base_free_and_unlink(bmain, scene, ob_iter);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue