diff options
Diffstat (limited to 'source/blender/editors/object/object_bake_api.c')
-rw-r--r-- | source/blender/editors/object/object_bake_api.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c index 93f9856b51a..616c4370448 100644 --- a/source/blender/editors/object/object_bake_api.c +++ b/source/blender/editors/object/object_bake_api.c @@ -76,6 +76,8 @@ #include "object_intern.h" +/* prototypes */ +static void bake_set_props(wmOperator *op, Scene *scene); typedef struct BakeAPIRender { Object *ob; @@ -1078,6 +1080,9 @@ static int bake_exec(bContext *C, wmOperator *op) Render *re; int result = OPERATOR_CANCELLED; BakeAPIRender bkr = {NULL}; + Scene *scene = CTX_data_scene(C); + + bake_set_props(op, scene); bake_init_api_data(op, C, &bkr); re = bkr.render; |