Blender Git Commit Log

Git Commits -> Revision d0b3f9c

Revision d0b3f9c by Sebastian Parborg (master)
May 4, 2021, 13:11 (GMT)
Fix T87489: Text Data-Blocks get deleted on Recursive Purge

Text data block were not considered special in the recursive purge
function. So they would get deleted if they had no actual users.

To fix this we instead make text data block use "fake user" so that
addon authors can specify script files that should be removed if nothing
is using it anymore.

Per default, new text object have "fake user" set. So functionality
wise, the user has to explicitly specify that they want the text object
to be purge-able.

Reviewed By: Bastien

Differential Revision: https://developer.blender.org/D10983

Commit Details:

Full Hash: d0b3f9c81b031f19e0ecfdacad359d76dcddaebb
Parent Commit: 4599cea
Lines Changed: +46, -26

7 Modified Paths:

/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/text.c (+9, -7) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -1) (Diff)
/source/blender/blenloader/intern/versioning_290.c (+10, -0) (Diff)
/source/blender/blenloader/intern/versioning_300.c (+24, -14) (Diff)
/source/blender/editors/interface/interface_templates.c (+1, -1) (Diff)
/source/blender/editors/space_text/text_ops.c (+0, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021