[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [17386] trunk/blender/source/blender/src/ buttons_editing.c: Bugfix #17965
Ton Roosendaal
ton at blender.org
Mon Nov 10 11:05:10 CET 2008
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);
More information about the Bf-blender-cvs
mailing list