diff options
author | Ton Roosendaal <ton@blender.org> | 2005-12-06 18:39:25 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-12-06 18:39:25 +0300 |
commit | 6555ddbcd88b065dbe264594e50eefcfb71d5431 (patch) | |
tree | a5465998e1d71ef12cdb6cbd68ef70c5cc652c8f /source/blender/blenkernel/intern/group.c | |
parent | 898cbe370e0403da39347d91fc40f7a4a38aeaf2 (diff) |
Orange:
Series of fixes in Library linking of groups;
- On library-linking (SHIFT-F1) a Group, the Objects now don't get a "Base"
anymore, meaning they won't show up as Objects in the Scene.
This ensures you can use the linked Group as duplicator without having
your file polluted with new (and linked) objects.
(I realize it should be possible to have it with Base too, will check)
- On append or file-read, the linked Group Objects get drawn properly,
but the animation system doesn't run yet.
- Group buttons (F7) now shows if a Group is from Library
- Outliner draws Library linked data with blue-ish text
Other fixes;
- Using group-duplicator, with originals in hidden layer, now shows and
updates animated Objects correctly.
- All of Object button panels did not have a proper protection against
editing Library data.
Diffstat (limited to 'source/blender/blenkernel/intern/group.c')
-rw-r--r-- | source/blender/blenkernel/intern/group.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/group.c b/source/blender/blenkernel/intern/group.c index 7405f16d9c0..0ae6208c9de 100644 --- a/source/blender/blenkernel/intern/group.c +++ b/source/blender/blenkernel/intern/group.c @@ -95,11 +95,12 @@ void add_to_group(Group *group, Object *ob) } +/* also used for ob==NULL */ void rem_from_group(Group *group, Object *ob) { GroupObject *go, *gon; - if(group==NULL || ob==NULL) return; + if(group==NULL) return; go= group->gobject.first; while(go) { @@ -136,3 +137,16 @@ Group *find_group(Object *ob) } return NULL; } + +void group_tag_recalc(Group *group) +{ + GroupObject *go; + + if(group==NULL) return; + + for(go= group->gobject.first; go; go= go->next) { + if(go->ob) + go->ob->recalc= OB_RECALC; + } +} + |