diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-16 16:50:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-16 16:54:04 +0400 |
commit | 38e683cbb15e303cf68562b2183cc3082c346f8f (patch) | |
tree | 9db92e5b5a050797993b959a4bd186cd42ee83e8 /source/blender/editors/curve/editcurve_add.c | |
parent | e9fb4299ebe94ddc5df93e90ec753bd3e0284f84 (diff) |
Fix T38217: Fix glitch adding Monkey with view align
added an option so view-align can default to a different axis.
Diffstat (limited to 'source/blender/editors/curve/editcurve_add.c')
-rw-r--r-- | source/blender/editors/curve/editcurve_add.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/curve/editcurve_add.c b/source/blender/editors/curve/editcurve_add.c index 6804aa3584f..a1d144a92e9 100644 --- a/source/blender/editors/curve/editcurve_add.c +++ b/source/blender/editors/curve/editcurve_add.c @@ -473,7 +473,7 @@ static int curvesurf_prim_add(bContext *C, wmOperator *op, int type, int isSurf) ListBase *editnurb; Nurb *nu; bool newob = false; - bool enter_editmode, is_view_aligned; + bool enter_editmode; unsigned int layer; float dia; float loc[3], rot[3]; @@ -481,7 +481,7 @@ static int curvesurf_prim_add(bContext *C, wmOperator *op, int type, int isSurf) WM_operator_view3d_unit_defaults(C, op); - if (!ED_object_add_generic_get_opts(C, op, loc, rot, &enter_editmode, &layer, &is_view_aligned)) + if (!ED_object_add_generic_get_opts(C, op, 'Z', loc, rot, &enter_editmode, &layer, NULL)) return OPERATOR_CANCELLED; if (!isSurf) { /* adding curve */ |