diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-06 20:19:30 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-06 20:19:30 +0400 |
commit | ee307bec882a639c4574480dc7d0505b9812b8dc (patch) | |
tree | fdfc61e03f1146b8d5aed1f050a4d22a85fd5b1e /source/blender/blenkernel/BKE_library.h | |
parent | f7a0499f167613206cef3e707cc9e3ef04a5eb30 (diff) |
Fix #30798: when linking a datablock, it got simply added to the back of the
list, now the linked datablocks are sorted by name too (but still appear after
the non-linked datablocks).
Diffstat (limited to 'source/blender/blenkernel/BKE_library.h')
-rw-r--r-- | source/blender/blenkernel/BKE_library.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_library.h b/source/blender/blenkernel/BKE_library.h index 23da122ed8b..b18d25094dc 100644 --- a/source/blender/blenkernel/BKE_library.h +++ b/source/blender/blenkernel/BKE_library.h @@ -58,6 +58,7 @@ int id_make_local(struct ID *id, int test); int id_single_user(struct bContext *C, struct ID *id, struct PointerRNA *ptr, struct PropertyRNA *prop); int id_copy(struct ID *id, struct ID **newid, int test); int id_unlink(struct ID *id, int test); +void id_sort_by_name(struct ListBase *lb, struct ID *id); int new_id(struct ListBase *lb, struct ID *id, const char *name); void id_clear_lib_data(struct Main *bmain, struct ID *id); |