Blender Git Commit Log

Git Commits -> Revision 3343771

Revision 3343771 by Sybren A. Stüvel (master)
June 8, 2018, 11:52 (GMT)
Alembic import: fixed memory management for CoW copies of CacheFile blocks

When a CacheFile datablock is copied to an in-main datablock, it means that
the new copy should be independent of the old copy. In this case certain
properties are reset/duplicated. When it is copied to a no-main datablock,
we assume this is a copy-on-write copy that's used for evaluating things,
in which case the handle and object paths are referenced instead of
reset/ duplicated. This prevents us from re-opening the Alembic file every
time a new CoW copy is made.

The same approach is taken when freeing data (only when an in-main datablock
is freed do we actually free the data).

Commit Details:

Full Hash: 33437719c177ebd9d5d8718a137d1958e595cd8b
Parent Commit: 0c7fc3a
Lines Changed: +19, -6

1 Modified Path:

/source/blender/blenkernel/intern/cachefile.c (+19, -6) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021