Revision: 17386
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17386
Author:   ton
Date:     2008-11-10 11:05:09 +0100 (Mon, 10 Nov 2008)

Log Message:
-----------
Bugfix #17965

Most Surface (NURBS) tools in buttons didn't add undo pushes.

Modified Paths:
--------------
    trunk/blender/source/blender/src/buttons_editing.c

Modified: trunk/blender/source/blender/src/buttons_editing.c
===================================================================
--- trunk/blender/source/blender/src/buttons_editing.c  2008-11-10 05:42:07 UTC 
(rev 17385)
+++ trunk/blender/source/blender/src/buttons_editing.c  2008-11-10 10:05:09 UTC 
(rev 17386)
@@ -3246,6 +3246,7 @@
        case B_CONVERTNURB:
                if(G.obedit) {
                        setsplinetype(event-B_CONVERTPOLY);
+                       BIF_undo_push("Convert type");
                        DAG_object_flush_update(G.scene, G.obedit, 
OB_RECALC_DATA);
                        allqueue(REDRAWVIEW3D, 0);
                }
@@ -3277,6 +3278,7 @@
                                }
                                nu= nu->next;
                        }
+                       BIF_undo_push("Cyclic");
                        DAG_object_flush_update(G.scene, G.obedit, 
OB_RECALC_DATA);
                        allqueue(REDRAWVIEW3D, 0);
                }
@@ -3284,6 +3286,7 @@
        case B_SETWEIGHT:
                if(G.obedit) {
                        weightflagNurb(1, editbutweight, 0);
+                       BIF_undo_push("Set weight");
                        DAG_object_flush_update(G.scene, G.obedit, 
OB_RECALC_DATA);
                        allqueue(REDRAWVIEW3D, 0);
                }
@@ -3317,6 +3320,7 @@
                                }
                                makeknots(nu, 2, nu->flagv>>1);
                        }
+                       BIF_undo_push("Make knots");
                        DAG_object_flush_update(G.scene, G.obedit, 
OB_RECALC_DATA);
                        allqueue(REDRAWVIEW3D, 0);
                }
@@ -3368,6 +3372,7 @@
                                nu= nu->next;
                        }
                }
+               BIF_undo_push("Make 2D/3D");
                DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
                allqueue(REDRAWVIEW3D, 0);
                break;
@@ -3383,6 +3388,7 @@
                        }
                }
 
+               BIF_undo_push("Set resolution");
                DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
                allqueue(REDRAWVIEW3D, 0);
                allqueue(REDRAWBUTSALL, 0);


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

Reply via email to