Bugfix: particle editmode cut tool still wasn't working correct.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 28 Oct 2009 11:35:19 +0000 (11:35 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 28 Oct 2009 11:35:19 +0000 (11:35 +0000)
source/blender/editors/physics/particle_edit.c

index ee1a21db7e50b0847be01ff11b162cc37b4f5fb9..438150b25ac0f729fa3194ffaef7acc48fa7a60b 100644 (file)
@@ -3321,15 +3321,13 @@ static void brush_edit_apply(bContext *C, wmOperator *op, PointerRNA *itemptr)
                if((pset->flag & PE_KEEP_LENGTHS)==0)
                        recalc_lengths(edit);
 
-               if(ELEM(pset->brushtype, PE_BRUSH_ADD, PE_BRUSH_CUT)) {
-                       if(added || removed) {
-                               if(pset->brushtype == PE_BRUSH_ADD && (pset->flag & PE_X_MIRROR))
-                                       PE_mirror_x(scene, ob, 1);
-
-                               update_world_cos(ob,edit);
-                               psys_free_path_cache(NULL, edit);
-                               DAG_id_flush_update(&ob->id, OB_RECALC_DATA);
-                       }
+               if(ELEM(pset->brushtype, PE_BRUSH_ADD, PE_BRUSH_CUT) && (added || removed)) {
+                       if(pset->brushtype == PE_BRUSH_ADD && (pset->flag & PE_X_MIRROR))
+                               PE_mirror_x(scene, ob, 1);
+
+                       update_world_cos(ob,edit);
+                       psys_free_path_cache(NULL, edit);
+                       DAG_id_flush_update(&ob->id, OB_RECALC_DATA);
                }
                else
                        PE_update_object(scene, ob, 1);