Blender Git Commit Log

Git Commits -> Revision 4443bad

Revision 4443bad by Bastien Montagne (master)
January 30, 2017, 21:33 (GMT)
Add optional, free-after-use usages mapping of IDs to Main.

The new MainIDRelations stores two mappings, one from ID users to ID
used, the other vice-versa.

That data is assumed to be short-living runtime, code creating it is
responsible to clear it asap. It will be much useful in places where we
handle relations between IDs for a lot of them at once.

Note: This commit is not fully functional, that is, the infamous, ugly,
PoS non-ID nodetrees will not be handled correctly when building relations.
Fix needed here is a bit noisy, so will be done in next own commit.

Commit Details:

Full Hash: 4443bad30a3926a33c3ead60f509f637ad29d6c5
Parent Commit: 997a210
Lines Changed: +103, -0

3 Modified Paths:

/source/blender/blenkernel/BKE_library.h (+3, -0) (Diff)
/source/blender/blenkernel/BKE_main.h (+23, -0) (Diff)
/source/blender/blenkernel/intern/library.c (+77, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021