[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13716] trunk/blender/source/blender/src/ header_info.c: == Sculpt ==

Nicholas Bishop nicholasbishop at gmail.com
Sat Feb 16 17:59:31 CET 2008


Revision: 13716
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13716
Author:   nicholasbishop
Date:     2008-02-16 17:59:26 +0100 (Sat, 16 Feb 2008)

Log Message:
-----------
== Sculpt ==

Fixed a double free occuring when duplicating a scene while in sculpt mode.

Modified Paths:
--------------
    trunk/blender/source/blender/src/header_info.c

Modified: trunk/blender/source/blender/src/header_info.c
===================================================================
--- trunk/blender/source/blender/src/header_info.c	2008-02-16 16:44:41 UTC (rev 13715)
+++ trunk/blender/source/blender/src/header_info.c	2008-02-16 16:59:26 UTC (rev 13716)
@@ -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 @@
 		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);
 		}
 	}
 	





More information about the Bf-blender-cvs mailing list