Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-11-10 13:05:09 +0300
committerTon Roosendaal <ton@blender.org>2008-11-10 13:05:09 +0300
commit8fc7d4640c7028d2ed563e619f7601dfa7132cfc (patch)
tree428b8bb3ceb9a28c11f9ca86c5f604daee01c551
parentac224d0b8960236e600c9dcb5c8c2b6b7827a4a0 (diff)
Bugfix #17965
Most Surface (NURBS) tools in buttons didn't add undo pushes.
-rw-r--r--source/blender/src/buttons_editing.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/src/buttons_editing.c b/source/blender/src/buttons_editing.c
index 6cbf14d47fb..b6dfd29d62a 100644
--- a/source/blender/src/buttons_editing.c
+++ b/source/blender/src/buttons_editing.c
@@ -3246,6 +3246,7 @@ void do_curvebuts(unsigned short event)
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 @@ void do_curvebuts(unsigned short event)
}
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 @@ void do_curvebuts(unsigned short event)
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 @@ void do_curvebuts(unsigned short event)
}
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 @@ void do_curvebuts(unsigned short event)
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 @@ void do_curvebuts(unsigned short event)
}
}
+ BIF_undo_push("Set resolution");
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWBUTSALL, 0);