diff options
author | Ton Roosendaal <ton@blender.org> | 2006-11-14 20:16:15 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-11-14 20:16:15 +0300 |
commit | 9ab91ab3616f667f39610c4e076644615d2fe632 (patch) | |
tree | d8b67a3091249ec5493fce489cf0b0f1826a116b /source/blender/blenloader | |
parent | ba71fbb785c0aa99bb111ed702a5734fa2358f91 (diff) |
New dupli-group feature: you can now set in Groups the layers you want
a group to show when used for duplicators. Is in the Object Buttons,
"Object and Links" panel. Note that the duplicator layer itself still
defines still visiblitily of entire group.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index e781341dc27..924baf0c1f2 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -5757,6 +5757,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main) Object *ob; Curve *cu; Material *ma; + Group *group; Nurb *nu; BezTriple *bezt; BPoint *bp; @@ -5870,6 +5871,10 @@ static void do_versions(FileData *fd, Library *lib, Main *main) ma->shad_alpha= 1.0f; } + for(group= main->group.first; group; group= group->id.next) + if(group->layer==0) + group->layer= (1<<20)-1; + /* History fix (python?), shape key adrcode numbers have to be sorted */ sort_shape_fix(main); } |