diff options
author | Ton Roosendaal <ton@blender.org> | 2006-02-14 14:28:13 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-02-14 14:28:13 +0300 |
commit | 9da59fdb5afd38556e84e6bf111361d6ada711aa (patch) | |
tree | 8e4fa4dae088aaf436dbdb2a418ae0294d514168 /source/blender/src/header_info.c | |
parent | 86511abe5a52f18b2b95ad47aa7b1c8b364387d9 (diff) |
Bug fix: copying a scene, choosing 'empty scene' did a corrupt copy of the
scene render layers
Little feat: Render Result Nodes that use other scene, have icon in button
to indicate this.
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r-- | source/blender/src/header_info.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c index 8e2b746d612..15ebfe0109f 100644 --- a/source/blender/src/header_info.c +++ b/source/blender/src/header_info.c @@ -458,8 +458,13 @@ void do_info_buttons(unsigned short event) nr= pupmenu("Add scene%t|Empty|Link Objects|Link ObData|Full Copy"); if(nr<= 0) return; if(nr==1) { + ListBase lb; + sce= add_scene(G.scene->id.name+2); + /* pretty bad ass copying here. we should use copy_scene to do all (ton) */ + lb= sce->r.layers; sce->r= G.scene->r; + sce->r.layers= lb; #ifdef _WIN32 if (sce->r.avicodecdata) { sce->r.avicodecdata = MEM_dupallocN(G.scene->r.avicodecdata); |