blender/source
Bastien Montagne 9da7dfa158 Refactor ID copying (and to some extent, ID freeing).
This will allow much finer controll over how we copy data-blocks, from
full copy in Main database, to "lighter" ones (out of Main, inside an
already allocated datablock, etc.).

This commit also transfers a llot of what was previously handled by
per-ID-type custom code to generic ID handling code in BKE_library.
Hopefully will avoid in future inconsistencies and missing bits we had
all over the codebase in the past.

It also adds missing copying handling for a few types, most notably
Scene (which where using a fully customized handling previously).

Note that the type of allocation used during copying (regular in Main,
allocated but outside of Main, or not allocated by ID handling code at
all) is stored in ID's, which allows to handle them correctly when
freeing. This needs to be taken care of with caution when doing 'weird'
unusual things with ID copying and/or allocation!

As a final note, while rather noisy, this commit will hopefully not
break too much existing branches, old 'API' has been kept for the main
part, as a wrapper around new code. Cleaning it up will happen later.

Design task : T51804
Phab Diff: D2714
2017-08-07 16:39:55 +02:00
..
blender Refactor ID copying (and to some extent, ID freeing). 2017-08-07 16:39:55 +02:00
blenderplayer Snap System: Separate raycast functions from nearest2d functions 2017-07-11 13:47:28 -03:00
creator Remove MinGW support 2017-05-27 15:34:55 -04:00
gameengine Cleanup: Py3.7x warning 2017-07-27 07:29:16 +10:00
tools@b11375e890 Fix blurry icons 2017-01-29 17:21:57 +03:00
CMakeLists.txt