Revision: 42537
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42537
Author:   nazgul
Date:     2011-12-09 14:30:44 +0000 (Fri, 09 Dec 2011)
Log Message:
-----------
Fix for select similar vertices operator: it's exec used to return selection 
count
instead of OPERATOR_* return values which used to confuse operators system.

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

Modified: trunk/blender/source/blender/editors/mesh/editmesh_mods.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/editmesh_mods.c   2011-12-09 
11:46:48 UTC (rev 42536)
+++ trunk/blender/source/blender/editors/mesh/editmesh_mods.c   2011-12-09 
14:30:44 UTC (rev 42537)
@@ -1166,7 +1166,7 @@
                                                        deselcount--;
                                                        if (!deselcount) 
{/*have we selected all posible faces?, if so return*/
                                                                
BKE_mesh_end_editmesh(me, em);
-                                                               return selcount;
+                                                               return 
OPERATOR_FINISHED;
                                                        }
                                                }
                                        }
@@ -1184,7 +1184,7 @@
                                                deselcount--;
                                                if (!deselcount) {/*have we 
selected all posible faces?, if so return*/
                                                        
BKE_mesh_end_editmesh(me, em);
-                                                       return selcount;
+                                                       return 
OPERATOR_FINISHED;
                                                }
                                        }
                                }
@@ -1198,7 +1198,7 @@
 
                                if (!base_dvert || base_dvert->totweight == 0) {
                                        BKE_mesh_end_editmesh(me, em);
-                                       return selcount;
+                                       return OPERATOR_FINISHED;
                                }
                                
                                for(eve= em->verts.first; eve; eve= eve->next) {
@@ -1216,7 +1216,7 @@
                                                                        
deselcount--;
                                                                        if 
(!deselcount) { /*have we selected all posible faces?, if so return*/
                                                                                
BKE_mesh_end_editmesh(me, em);
-                                                                               
return selcount;
+                                                                               
return OPERATOR_FINISHED;
                                                                        }
                                                                        break;
                                                                }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to