Blender Git Commit Log

Git Commits -> Revision 8c75037

February 3, 2020, 09:52 (GMT)
readfile: Quick experiment with refcounting moved to libquery.

Having that extra ID users handling at readfile level, besides generic
one ensured by libquery, has been something bothering me for a long time
(had to fix my share of bugs due to mismatches between those two areas).

Further more, work on undo speedup will require even more complex ID
refcount management if we want to keep it in readfile.c area.

So idea is instead to generalize what we did for linked data already
when undoing: recompute properly usercount numbers after liblink step,
for all IDs.

Note that extra time required here is neglectable in a whole .blend file
reading (few extra milliseconds when loading a full production scene
e.g.).

Commit Details:

Full Hash: 8c7503726df916ea74d94b853960d983bee80ccb
Parent Commit: 9829a3c
Lines Changed: +7, -13

2 Modified Paths:

/source/blender/blenkernel/intern/blendfile.c (+0, -10) (Diff)
/source/blender/blenloader/intern/readfile.c (+7, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021