diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-30 17:37:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-30 17:37:25 +0300 |
commit | 57cd505d3f29b83bea74f4132455f00b248d5808 (patch) | |
tree | eef3278dc77873f421201d806ad2411095f7e3a1 /source/blender/editors/object/object_edit.c | |
parent | a4913896b8f42be9bdde6ebc320a4955578a8f9e (diff) |
bake is now modal like render and updates the image view while baking.
it also has an exec function which doesnt update (like render too)
Diffstat (limited to 'source/blender/editors/object/object_edit.c')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 790db0dc564..9ef1fafff82 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1671,34 +1671,6 @@ void OBJECT_OT_shade_smooth(wmOperatorType *ot) /* flags */ ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; } -/* bake */ - -static int bake_image_exec(bContext *C, wmOperator *op) -{ - Scene *scene= CTX_data_scene(C); - char *error_msg= NULL; - objects_bake_render(scene, 0, &error_msg); - - if(error_msg) { - BKE_report(op->reports, RPT_ERROR, error_msg); - return OPERATOR_CANCELLED; - } - else { - WM_event_add_notifier(C, NC_SCENE|ND_RENDER_RESULT, scene); - return OPERATOR_FINISHED; - } -} - -void OBJECT_OT_bake_image(wmOperatorType *ot) -{ - /* identifiers */ - ot->name= "Bake"; - ot->description= "Bake selected objects."; - ot->idname= "OBJECT_OT_bake_image"; - - /* api callbacks */ - ot->exec= bake_image_exec; -} /* ********************** */ |