1dca5af712524ca48759d5114aa3bff629d9aab5
So far, when deleting a library (either explicitely, or through e.g. relocation), its dependencies would get a `nullptr` parent, and therefore become 'directly used' libraries. This commit adds a new util to rebuild the libraries hieararchy, and calls it when a Library ID is deleted. NOTE: While logic is somewhat similar to what liboverride resync does to sort the libraries by indirect levels (`lib_override_libraries_index_define`), there are some key differences here, notably the fact that if a library has a valid `parent` pointer, it is not replaced, even if a 'better' parent (less indirect library) could be found.
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
