diff options
author | Ton Roosendaal <ton@blender.org> | 2010-11-23 20:28:41 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-11-23 20:28:41 +0300 |
commit | 6c19670d7c97103f58aff2747072c9f9a1620354 (patch) | |
tree | 04ea29856179e2f4492ca02803499cf5e3c7b1df /source/blender/editors/object/object_add.c | |
parent | 68b49aa981e146d7a7afde3e83305445bcc5ca3e (diff) |
Bugfix #24860
On entering editmode Curve/Nurbs, the undo buffer was not
correct; storing old Curve/Nurbs object name. This caused
for example the Operator tool redo options to fail; it added
another curve on first use (with user pref "enter editmode).
Solved with adding good undo push + nicer code for curve and
nurbs naming.
Diffstat (limited to 'source/blender/editors/object/object_add.c')
-rw-r--r-- | source/blender/editors/object/object_add.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index 56c2be4f17c..198b68bce40 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -279,6 +279,7 @@ int ED_object_add_generic_get_opts(bContext *C, wmOperator *op, float *loc, floa } /* for object add primitive operators */ +/* do not call undo push in this function (users of this function have to) */ Object *ED_object_add_type(bContext *C, int type, float *loc, float *rot, int enter_editmode, unsigned int layer) { Main *bmain= CTX_data_main(C); |