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:
authorCampbell Barton <ideasman42@gmail.com>2008-02-16 22:13:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-02-16 22:13:40 +0300
commit54fd70a8bbcee7bea1c1dea7ede7689f4d783a62 (patch)
tree850a5b3330ce9e733b42dcfcad8dca60bbdf645f /source/blender/src/header_info.c
parent2c11523b39b8a47ce7bd2e7df9287cc7748d0745 (diff)
sculptmode mtex texture pointers are now duplicated too, should resolve scene copy errors.
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r--source/blender/src/header_info.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c
index d94442dacfc..4679df9f9ba 100644
--- a/source/blender/src/header_info.c
+++ b/source/blender/src/header_info.c
@@ -337,7 +337,14 @@ Scene *copy_scene(Scene *sce, int level)
/* sculpt data */
sce->sculptdata.session = NULL;
if (sce->sculptdata.cumap) {
+ int a;
scen->sculptdata.cumap = curvemapping_copy(sce->sculptdata.cumap);
+ scen->sculptdata.session = NULL; /* this is only for temp data storage anyway */
+ for(a=0; a<MAX_MTEX; ++a) {
+ if (sce->sculptdata.mtex[a]) {
+ scen->sculptdata.mtex[a]= MEM_dupallocN(sce->sculptdata.mtex[a]);
+ }
+ }
}
}