Adding undo push and redraw for convert calls.
authorMartin Poirier <theeth@yahoo.com>
Mon, 20 Oct 2008 00:04:40 +0000 (00:04 +0000)
committerMartin Poirier <theeth@yahoo.com>
Mon, 20 Oct 2008 00:04:40 +0000 (00:04 +0000)
source/blender/src/editarmature_sketch.c

index 0d53ec5f8a6f958cc6941f39eca0d2f46f9e9197..07bdddfa400f992a480ce97e95769cc1c47d54dd 100644 (file)
@@ -1735,6 +1735,8 @@ void sk_applyGesture(SK_Sketch *sketch)
        else if (nb_segments > 2 && nb_self_intersections == 1)
        {
                sk_convert(sketch);
+               BIF_undo_push("Convert Sketch");
+               allqueue(REDRAWBUTSEDIT, 0);
        }
        
        sk_freeStroke(segments);
@@ -2112,6 +2114,7 @@ void BIF_convertSketch()
                if (GLOBAL_sketch != NULL)
                {
                        sk_convert(GLOBAL_sketch);
+                       BIF_undo_push("Convert Sketch");
                        allqueue(REDRAWVIEW3D, 0);
                        allqueue(REDRAWBUTSEDIT, 0);
                }