diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-06-09 23:20:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-06-09 23:20:05 +0400 |
commit | 6b21085ed5d8bcd827859345105d7b37e1049d4b (patch) | |
tree | 46d673a44b1723e7d307755ab27269f837aa39d5 /source/blender/editors/curve | |
parent | 1028284301d7a5d45bf968e12bc094e3393e56f9 (diff) |
enable adding objects in background mode by not using the context to get the object added.
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 1b1af31095a..274b51f03b2 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -5283,7 +5283,7 @@ static int curve_prim_add(bContext *C, wmOperator *op, int type){ } else DAG_id_flush_update(&obedit->id, OB_RECALC_DATA); - ED_object_new_primitive_matrix(C, loc, rot, mat); + ED_object_new_primitive_matrix(C, obedit, loc, rot, mat); nu= add_nurbs_primitive(C, mat, type, newob); editnurb= curve_get_editcurve(obedit); |