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:
authorJohnny Matthews <johnny.matthews@gmail.com>2005-08-25 00:37:25 +0400
committerJohnny Matthews <johnny.matthews@gmail.com>2005-08-25 00:37:25 +0400
commita51896b5916fa7c17be3941ffe6b99aa335ca14a (patch)
tree3db854338f286c16b4b09e4cffac8365b3e02c51 /source/blender/src/header_info.c
parenta978c122ee76ea947d55dda50a2dc97ae3ff8457 (diff)
Move the settings in the Mesh Tools panel to the new toolsettings struct in Scene. These settings are now saved per scene.
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r--source/blender/src/header_info.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c
index d7944ab3d93..1f1aaeb84c1 100644
--- a/source/blender/src/header_info.c
+++ b/source/blender/src/header_info.c
@@ -309,6 +309,8 @@ Scene *copy_scene(Scene *sce, int level)
scen->ed= NULL;
scen->radio= NULL;
scen->theDag= NULL;
+ scen->toolsettings= MEM_dupallocN(sce->toolsettings);
+
obase= sce->base.first;
base= scen->base.first;
@@ -324,6 +326,7 @@ Scene *copy_scene(Scene *sce, int level)
/* level 1 */
G.scene= scen;
+
single_object_users(0);
/* camera */
@@ -340,12 +343,12 @@ Scene *copy_scene(Scene *sce, int level)
single_tex_users_expand();
scen->radio= MEM_dupallocN(sce->radio);
+
}
clear_id_newpoins();
BPY_copy_scriptlink(&sce->scriptlink);
-
// make a private copy of the avicodecdata
if (sce->r.avicodecdata) {