diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-02 19:07:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-02 19:07:49 +0300 |
commit | 1d9f90ed42ba61d615dd0188e39cc12f0b71493f (patch) | |
tree | 9238a741403b33613d6fbdb19497f34ffdbb1b68 /source/blender/editors/curve/editfont.c | |
parent | 9ea97203ae2049ea50e7bfbe3e30815eebb5990c (diff) |
- all add object operators now take view_align as an argument, and enter_editmode where its used. Makes running the operator from python pradictable without having to know the user prefs.
- missing return in function
- python error in view3d (assumed active object exists)
Diffstat (limited to 'source/blender/editors/curve/editfont.c')
-rw-r--r-- | source/blender/editors/curve/editfont.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c index 2be567e1921..6ebc9c8a1c9 100644 --- a/source/blender/editors/curve/editfont.c +++ b/source/blender/editors/curve/editfont.c @@ -479,7 +479,7 @@ static void txt_add_object(bContext *C, TextLine *firstline, int totline, float obedit= add_object(scene, OB_FONT); base= scene->basact; - ED_object_base_init_from_view(C, base); + ED_object_base_init_from_view(C, base, 1); /* seems to assume view align ? TODO - look into this, could be an operator option */ where_is_object(scene, obedit); obedit->loc[0] += offset[0]; |