[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24328] trunk/blender: - Stopping jobs on undo wasnt fixing undo/ redo while with render previews as it was supposed to: needed WM_jobs_stop_all rather then WM_jobs_stop because it ends the thread rather then just setting 'stop'.

Campbell Barton ideasman42 at gmail.com
Wed Nov 4 21:50:09 CET 2009


Revision: 24328
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24328
Author:   campbellbarton
Date:     2009-11-04 21:50:09 +0100 (Wed, 04 Nov 2009)

Log Message:
-----------
- Stopping jobs on undo wasnt fixing undo/redo while with render previews as it was supposed to: needed WM_jobs_stop_all rather then WM_jobs_stop because it ends the thread rather then just setting 'stop'.
- gpl header + warning fix

Modified Paths:
--------------
    trunk/blender/release/scripts/op/wm.py
    trunk/blender/source/blender/blenkernel/BKE_deform.h
    trunk/blender/source/blender/blenkernel/intern/blender.c
    trunk/blender/source/blender/blenkernel/intern/deform.c

Modified: trunk/blender/release/scripts/op/wm.py
===================================================================
--- trunk/blender/release/scripts/op/wm.py	2009-11-04 20:45:59 UTC (rev 24327)
+++ trunk/blender/release/scripts/op/wm.py	2009-11-04 20:50:09 UTC (rev 24328)
@@ -1,3 +1,23 @@
+# ##### BEGIN GPL LICENSE BLOCK #####
+#
+#  This program is free software; you can redistribute it and/or
+#  modify it under the terms of the GNU General Public License
+#  as published by the Free Software Foundation; either version 2
+#  of the License, or (at your option) any later version.
+# 
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+# 
+#  You should have received a copy of the GNU General Public License
+#  along with this program; if not, write to the Free Software Foundation,
+#  Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
+# ##### END GPL LICENSE BLOCK #####
+
+# <pep8-80 compliant>
+
 import bpy
 
 from bpy.props import *

Modified: trunk/blender/source/blender/blenkernel/BKE_deform.h
===================================================================
--- trunk/blender/source/blender/blenkernel/BKE_deform.h	2009-11-04 20:45:59 UTC (rev 24327)
+++ trunk/blender/source/blender/blenkernel/BKE_deform.h	2009-11-04 20:50:09 UTC (rev 24328)
@@ -44,7 +44,7 @@
 struct bDeformGroup *copy_defgroup (struct bDeformGroup *ingroup);
 struct bDeformGroup *get_named_vertexgroup (Object *ob, char *name);
 int get_defgroup_num (struct Object *ob, struct bDeformGroup *dg);
-int get_named_vertexgroup_num (Object *ob, char *name);
+int get_named_vertexgroup_num (Object *ob, const char *name);
 void unique_vertexgroup_name (struct bDeformGroup *dg, struct Object *ob);
 
 float deformvert_get_weight(const struct MDeformVert *dvert, int group_num);

Modified: trunk/blender/source/blender/blenkernel/intern/blender.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/blender.c	2009-11-04 20:45:59 UTC (rev 24327)
+++ trunk/blender/source/blender/blenkernel/intern/blender.c	2009-11-04 20:50:09 UTC (rev 24328)
@@ -537,7 +537,7 @@
 	int success=0, fileflags;
 	
 	/* This is needed so undoing/redoing doesnt crash with threaded previews going */
-	WM_jobs_stop(CTX_wm_manager(C), CTX_wm_screen(C));
+	WM_jobs_stop_all(CTX_wm_manager(C));
 	
 	strcpy(scestr, G.sce);	/* temporal store */
 	fileflags= G.fileflags;

Modified: trunk/blender/source/blender/blenkernel/intern/deform.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/deform.c	2009-11-04 20:45:59 UTC (rev 24327)
+++ trunk/blender/source/blender/blenkernel/intern/deform.c	2009-11-04 20:50:09 UTC (rev 24328)
@@ -110,7 +110,7 @@
 	return NULL;
 }
 
-int get_named_vertexgroup_num (Object *ob, char *name)
+int get_named_vertexgroup_num (Object *ob, const char *name)
 {
 	/* Return the location of the named deform group within the list of
 	 * deform groups. This function is a combination of get_defgroup_num and





More information about the Bf-blender-cvs mailing list