diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2016-12-23 17:32:20 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2016-12-23 17:34:36 +0300 |
commit | c51a32554e02a9d27d5e6491e2589f4406f17ad1 (patch) | |
tree | 689b89e2a088c2a5fcc9eace49dc2620fd6c523a /source/blender/editors/curve/editfont.c | |
parent | 95e183b7f4a4dcf50794d4be5fb2c267cb5aad0f (diff) |
Make sure new objects go to the correct (active) collection
Diffstat (limited to 'source/blender/editors/curve/editfont.c')
-rw-r--r-- | source/blender/editors/curve/editfont.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/curve/editfont.c b/source/blender/editors/curve/editfont.c index 57e731874b4..ef7f368ee0a 100644 --- a/source/blender/editors/curve/editfont.c +++ b/source/blender/editors/curve/editfont.c @@ -420,6 +420,7 @@ static void txt_add_object(bContext *C, TextLine *firstline, int totline, const { Main *bmain = CTX_data_main(C); Scene *scene = CTX_data_scene(C); + SceneLayer *sl = CTX_data_scene_layer(C); Curve *cu; Object *obedit; Base *base; @@ -429,7 +430,7 @@ static void txt_add_object(bContext *C, TextLine *firstline, int totline, const int a; float rot[3] = {0.f, 0.f, 0.f}; - obedit = BKE_object_add(bmain, scene, OB_FONT, NULL); + obedit = BKE_object_add(bmain, scene, sl, OB_FONT, NULL); base = scene->basact; /* seems to assume view align ? TODO - look into this, could be an operator option */ |