02687d76090ac8e20cc3f375a7eb88d5ee81a260
Changes to the drawings array require an update of the `drawing_index` stored in frames. Subsequently the frame storage data (for writing to files) also needs to be updated. This was missing in the `remove_drawings_with_no_users` function, which can lead to invalid `drawing_index` after loading the file again. A regression test has been added for this case. Also fixed a minor memory leak when all the drawings are removed. The drawing array ends up empty but still has a pointer allocated. Fixes should avoid this (nullptr when `drawing_array_num` is zero) but also make sure the array pointer is handled anyway instead of assuming nullptr. Pull Request: https://projects.blender.org/blender/blender/pulls/118569
…
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%
