734e9fa4b82cf8f6e291fc0e9755bafec1548c61
For non-trivial custom data types, the undo system did a shallow copy of the base array which implicitly transferred ownership of the data to the undo system. Combined with implicit sharing, this was hacky at best, and quite wrong at worst, since it freed the implicit sharing info incorrectly. To fix this, free the mesh custom data with the standard function for that and add the non-trivial layers to the undo state using implicit sharing to avoid another copy. Alternative to #123894 and #123884. Pull Request: https://projects.blender.org/blender/blender/pulls/123991
…
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%
