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 <montagne29@wanadoo.fr>2019-02-18 18:15:01 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-02-18 19:16:33 +0300
commit0951778ebaabd70af6cebb325472c6754a07555c (patch)
tree06af2d4b00f5136022bc4e8a04b919816ef20d94 /source/blender/blenkernel
parent00d2e9096f8b57027e5ff48b057856d5b4b0f3cf (diff)
ID management: use FOREACH_MAIN_ID in some places.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/library.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index f28d98a9677..c46ae67a56d 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -1660,19 +1660,14 @@ void id_clear_lib_data(Main *bmain, ID *id)
/* next to indirect usage in read/writefile also in editobject.c scene.c */
void BKE_main_id_clear_newpoins(Main *bmain)
{
- ListBase *lbarray[MAX_LIBARRAY];
ID *id;
- int a;
- a = set_listbasepointers(bmain, lbarray);
- while (a--) {
- id = lbarray[a]->first;
- while (id) {
- id->newid = NULL;
- id->tag &= ~LIB_TAG_NEW;
- id = id->next;
- }
+ FOREACH_MAIN_ID_BEGIN(bmain, id)
+ {
+ id->newid = NULL;
+ id->tag &= ~LIB_TAG_NEW;
}
+ FOREACH_MAIN_ID_END;
}