Blender Git Commit Log

Git Commits -> Revision 13f591d

Revision 13f591d by Bastien Montagne (master)
June 17, 2020, 15:06 (GMT)
ID Duplicate: Factorize a lot the code.

Now that we have a uniform consistent behavior in all our ID duplicate
funtions, we can easily factorize it greatly. Code gets cleaner,
smaller, and less error-prone.

Note that ultimately, this duplicate/deep copy behavior could be added
as a callback of IDTypeInfo.
We could also rethink the duplicate flags (some data, even some obdata,
like Lattice, are not coverred currently).
And so on. But at least code should now be much more easily maintainable
and extendable.

Commit Details:

Full Hash: 13f591d400e2d17633bf7ebba9c7890fd563e4d2
Parent Commit: c84fee1
Lines Changed: +138, -230

5 Modified Paths:

/source/blender/blenkernel/BKE_lib_id.h (+4, -0) (Diff)
/source/blender/blenkernel/intern/collection.c (+2, -11) (Diff)
/source/blender/blenkernel/intern/lib_id.c (+43, -0) (Diff)
/source/blender/blenkernel/intern/object.c (+85, -184) (Diff)
/source/blender/blenkernel/intern/scene.c (+4, -35) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021