Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-05-12 19:35:33 +0300
committerBastien Montagne <bastien@blender.org>2020-05-12 19:54:57 +0300
commit5fd64c014fa02b98d650fd6934c0d07a74707c51 (patch)
treec5b3f6a1513323e6a9c01bc3faa0a5f6808d9784 /source/blender/blenkernel/intern/lib_query.c
parent9996688b71678a0ea9e98027d6cc3ed4c308959d (diff)
Refactor: Move armature foreach_id to new IDTypeInfo structure.
Diffstat (limited to 'source/blender/blenkernel/intern/lib_query.c')
-rw-r--r--source/blender/blenkernel/intern/lib_query.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/source/blender/blenkernel/intern/lib_query.c b/source/blender/blenkernel/intern/lib_query.c
index c2df1d4e7ac..7f28941738c 100644
--- a/source/blender/blenkernel/intern/lib_query.c
+++ b/source/blender/blenkernel/intern/lib_query.c
@@ -337,18 +337,6 @@ static void library_foreach_paint(LibraryForeachIDData *data, Paint *paint)
FOREACH_FINALIZE_VOID;
}
-static void library_foreach_bone(LibraryForeachIDData *data, Bone *bone)
-{
- IDP_foreach_property(
- bone->prop, IDP_TYPE_FILTER_ID, BKE_lib_query_idpropertiesForeachIDLink_callback, data);
-
- LISTBASE_FOREACH (Bone *, curbone, &bone->childbase) {
- library_foreach_bone(data, curbone);
- }
-
- FOREACH_FINALIZE_VOID;
-}
-
static void library_foreach_layer_collection(LibraryForeachIDData *data, ListBase *lb)
{
LISTBASE_FOREACH (LayerCollection *, lc, lb) {
@@ -902,11 +890,7 @@ static void library_foreach_ID_link(Main *bmain,
}
case ID_AR: {
- bArmature *arm = (bArmature *)id;
-
- LISTBASE_FOREACH (Bone *, bone, &arm->bonebase) {
- library_foreach_bone(&data, bone);
- }
+ BLI_assert(0);
break;
}