[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16101] branches/soc-2008-nicholasbishop/ source/blender/src/usiblender.c: Before saving a file, make sure sculpts to multires are stored in MDisps

Nicholas Bishop nicholasbishop at gmail.com
Thu Aug 14 07:57:09 CEST 2008


Revision: 16101
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16101
Author:   nicholasbishop
Date:     2008-08-14 07:57:09 +0200 (Thu, 14 Aug 2008)

Log Message:
-----------
Before saving a file, make sure sculpts to multires are stored in MDisps

Modified Paths:
--------------
    branches/soc-2008-nicholasbishop/source/blender/src/usiblender.c

Modified: branches/soc-2008-nicholasbishop/source/blender/src/usiblender.c
===================================================================
--- branches/soc-2008-nicholasbishop/source/blender/src/usiblender.c	2008-08-14 05:06:59 UTC (rev 16100)
+++ branches/soc-2008-nicholasbishop/source/blender/src/usiblender.c	2008-08-14 05:57:09 UTC (rev 16101)
@@ -79,6 +79,7 @@
 #include "BKE_global.h"
 #include "BKE_main.h"
 #include "BKE_mball.h"
+#include "BKE_multires.h"
 #include "BKE_node.h"
 #include "BKE_packedFile.h"
 #include "BKE_texture.h"
@@ -903,10 +904,16 @@
 	if(G.obedit) {
 		exit_editmode(0);	/* 0 = no free data */
 	}
+
+	if(G.f & G_SCULPTMODE) {
+		Object *ob = OBACT;
+		multires_force_update(ob);
+	}
+
 	if (G.fileflags & G_AUTOPACK) {
 		packAll();
 	}
-	
+
 	waitcursor(1);	// exit_editmode sets cursor too
 
 	do_history(di);





More information about the Bf-blender-cvs mailing list