d64e4a387acb5ec96b9fdba08268ba4f420703ac
The issue was that Armatures have their own edit-mode undo system, but it didn't account for bone collections yet. The solution implemented here is to also copy the list of BoneCollections in each edit-mode undo step, just like EditBones themselves already are. Additionally, the undo EditBones now have their bone collection membership remapped to point at those undo copies, so that the entire undo step is self-contained. When restoring from an undo step, we simply do the reverse: copy all of the EditBones and BoneCollections back to the actual armature, and remap the EditBone collection membership appropriately. This patch also includes a temporary workaround for a final issue, where BoneCollection membership information could be lost when undoing pops you out of edit mode. The correct solution for this is a bit involved, and will be part of a future PR. But the workaround ensures that things aren't broken in the mean time. Pull Request: https://projects.blender.org/blender/blender/pulls/111965
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
