- 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)
This commit is contained in:
2009-11-02 16:07:49 +00:00
parent 9ea97203ae
commit 1d9f90ed42
8 changed files with 197 additions and 70 deletions

View File

@@ -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];