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:
authorTon Roosendaal <ton@blender.org>2006-02-14 14:28:13 +0300
committerTon Roosendaal <ton@blender.org>2006-02-14 14:28:13 +0300
commit9da59fdb5afd38556e84e6bf111361d6ada711aa (patch)
tree8e4fa4dae088aaf436dbdb2a418ae0294d514168 /source/blender/src/header_info.c
parent86511abe5a52f18b2b95ad47aa7b1c8b364387d9 (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.c5
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);