[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39393] trunk/blender/source/blender/ editors/mesh/editmesh.c: patch [#28247] Fix for: [#28236] Separate By Materials fails when some materials "available" to the mesh are unassigned

Campbell Barton ideasman42 at gmail.com
Sun Aug 14 14:02:02 CEST 2011


Revision: 39393
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39393
Author:   campbellbarton
Date:     2011-08-14 12:02:01 +0000 (Sun, 14 Aug 2011)
Log Message:
-----------
patch [#28247] Fix for: [#28236] Separate By Materials fails when some materials "available" to the mesh are unassigned
from Alex Fraser (z0r)

Modified Paths:
--------------
    trunk/blender/source/blender/editors/mesh/editmesh.c

Modified: trunk/blender/source/blender/editors/mesh/editmesh.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/editmesh.c	2011-08-14 11:38:17 UTC (rev 39392)
+++ trunk/blender/source/blender/editors/mesh/editmesh.c	2011-08-14 12:02:01 UTC (rev 39393)
@@ -1449,9 +1449,8 @@
 		/* select the material */
 		EM_select_by_material(em, curr_mat);
 		/* and now separate */
-		if(0==mesh_separate_selected(op, bmain, scene, editbase)) {
-			BKE_mesh_end_editmesh(me, em);
-			return 0;
+		if(em->totfacesel > 0) {
+			mesh_separate_selected(op, bmain, scene, editbase);
 		}
 	}
 




More information about the Bf-blender-cvs mailing list