Cycles-Bake: Unset properties fallback only working for invoke

This commit is contained in:
Dalai Felinto
2016-01-04 12:13:52 -02:00
parent c59e8cc12a
commit 353d0237bc

View File

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