[Bf-blender-cvs] [b7bf9ed] master: Cleanup: add missing entries to library_query.c ID types switch case.
Bastien Montagne
noreply at git.blender.org
Fri Aug 5 16:13:46 CEST 2016
Commit: b7bf9ed2b4a43269ede4289c967f9a85f809372b
Author: Bastien Montagne
Date: Fri Aug 5 16:12:44 2016 +0200
Branches: master
https://developer.blender.org/rBb7bf9ed2b4a43269ede4289c967f9a85f809372b
Cleanup: add missing entries to library_query.c ID types switch case.
===================================================================
M source/blender/blenkernel/intern/library_query.c
===================================================================
diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c
index d71e801..f858fbc 100644
--- a/source/blender/blenkernel/intern/library_query.c
+++ b/source/blender/blenkernel/intern/library_query.c
@@ -305,7 +305,7 @@ void BKE_library_foreach_ID_link(ID *id, LibraryIDLinkCallback callback, void *u
library_foreach_animationData(&data, adt);
}
- switch (GS(id->name)) {
+ switch ((ID_Type)GS(id->name)) {
case ID_LI:
{
Library *lib = (Library *) id;
@@ -842,6 +842,24 @@ void BKE_library_foreach_ID_link(ID *id, LibraryIDLinkCallback callback, void *u
}
break;
}
+
+ /* Nothing needed for those... */
+ case ID_IM:
+ case ID_VF:
+ case ID_TXT:
+ case ID_SO:
+ case ID_AR:
+ case ID_AC:
+ case ID_GD:
+ case ID_WM:
+ case ID_PAL:
+ case ID_PC:
+ break;
+
+ /* Deprecated. */
+ case ID_IP:
+ break;
+
}
} while ((id = (flag & IDWALK_RECURSE) ? BLI_LINKSTACK_POP(data.ids_todo) : NULL));
More information about the Bf-blender-cvs
mailing list