diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-02-16 19:59:26 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2008-02-16 19:59:26 +0300 |
commit | 1543b0f1f1906cf4d99111853f560efbf3a5cf37 (patch) | |
tree | ba3d255da190473a4331311de70664a4cd02a258 /source/blender/src/header_info.c | |
parent | 903d71e899ed0de38340f13312965c513c4df347 (diff) |
== Sculpt ==
Fixed a double free occuring when duplicating a scene while in sculpt mode.
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r-- | source/blender/src/header_info.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c index 57388bbca68..d94442dacfc 100644 --- a/source/blender/src/header_info.c +++ b/source/blender/src/header_info.c @@ -84,6 +84,7 @@ #endif #include "BKE_blender.h" +#include "BKE_colortools.h" #include "BKE_depsgraph.h" #include "BKE_exotic.h" #include "BKE_global.h" @@ -334,8 +335,9 @@ Scene *copy_scene(Scene *sce, int level) BPY_copy_scriptlink(&sce->scriptlink); /* sculpt data */ + sce->sculptdata.session = NULL; if (sce->sculptdata.cumap) { - scen->sculptdata.cumap = curvemapping_copy( sce->sculptdata.cumap ); + scen->sculptdata.cumap = curvemapping_copy(sce->sculptdata.cumap); } } |