[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45795] trunk/blender/source/blender/bmesh /intern/bmesh_iterators_inline.h: Fixed crash in iter api, triggered by calling index_update() on the loop py seq in the py api.

Joseph Eagar joeedh at gmail.com
Thu Apr 19 23:14:11 CEST 2012


Revision: 45795
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45795
Author:   joeedh
Date:     2012-04-19 21:14:11 +0000 (Thu, 19 Apr 2012)
Log Message:
-----------
Fixed crash in iter api, triggered by calling index_update() on the loop py seq in the py api.  Note, I didn't fix the underlying problem (bad iter type) so loops.index_update() still isn't working (it's just not crashing).

Modified Paths:
--------------
    trunk/blender/source/blender/bmesh/intern/bmesh_iterators_inline.h

Modified: trunk/blender/source/blender/bmesh/intern/bmesh_iterators_inline.h
===================================================================
--- trunk/blender/source/blender/bmesh/intern/bmesh_iterators_inline.h	2012-04-19 19:13:57 UTC (rev 45794)
+++ trunk/blender/source/blender/bmesh/intern/bmesh_iterators_inline.h	2012-04-19 21:14:11 UTC (rev 45795)
@@ -161,10 +161,12 @@
 			iter->edata = data;
 			break;
 		default:
+			return FALSE;
 			break;
 	}
+	
+	iter->begin(iter);
 
-	iter->begin(iter);
 	return TRUE;
 }
 




More information about the Bf-blender-cvs mailing list