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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-09-14 16:30:49 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-09-14 16:30:49 +0400
commit4539bb9a98efb33044bb54fd9e906e280fdc26bd (patch)
tree8490c279a2c965b0362ee0d71517b29e3916c8c1 /source/blender/blenkernel/intern/library.c
parent6cee5201ec580f48b16efdd0a5620c52e86ce70e (diff)
Link/Append, small changes:
* Added separate menu items for Link and Append. * Change some OPERATOR_FINISHED to OPERATOR_CANCELLED. * Remove some IPO specific hacks, these are no longer ID blocks, so not necessary to take into account. * Some comment and code formatting tweaks.
Diffstat (limited to 'source/blender/blenkernel/intern/library.c')
-rw-r--r--source/blender/blenkernel/intern/library.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index da7692d0cdb..45869a317e8 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -455,16 +455,14 @@ void flag_all_listbases_ids(short flag, short value)
while(a--) flag_listbase_ids(lbarray[a], flag, value);
}
-void recalc_all_library_objects(struct Main *main)
+void recalc_all_library_objects(Main *main)
{
- /* DISPLISTS? */
- Object *ob= main->object.first;
- while(ob) {
- if(ob->id.lib) {
+ Object *ob;
+
+ /* flag for full recalc */
+ for(ob=main->object.first; ob; ob=ob->id.next)
+ if(ob->id.lib)
ob->recalc |= OB_RECALC;
- }
- ob= ob->id.next;
- }
}
/* note: MAX_LIBARRAY define should match this code */