[Bf-blender-cvs] [bf7b3a7] bake-cycles: Cycles-Bake: custom cages were not working since the wm_job refactor

Dalai Felinto noreply at git.blender.org
Sat May 3 01:54:36 CEST 2014


Commit: bf7b3a7bf881034610e30ac6b5452f75eb5a1320
Author: Dalai Felinto
Date:   Fri May 2 20:53:25 2014 -0300
https://developer.blender.org/rBbf7b3a7bf881034610e30ac6b5452f75eb5a1320

Cycles-Bake: custom cages were not working since the wm_job refactor

===================================================================

M	source/blender/editors/object/object_bake_api.c

===================================================================

diff --git a/source/blender/editors/object/object_bake_api.c b/source/blender/editors/object/object_bake_api.c
index 2d4ed11..211d695 100644
--- a/source/blender/editors/object/object_bake_api.c
+++ b/source/blender/editors/object/object_bake_api.c
@@ -861,6 +861,8 @@ static void bake_init_api_data(wmOperator *op, bContext *C, BakeAPIRender *bkr)
 	bkr->height = RNA_int_get(op->ptr, "height");
 	bkr->identifier = "";
 
+	RNA_string_get(op->ptr, "cage", bkr->custom_cage);
+
 	if ((!is_save_internal) && bkr->is_automatic_name) {
 		PropertyRNA *prop = RNA_struct_find_property(op->ptr, "type");
 		RNA_property_enum_identifier(C, op->ptr, prop, bkr->pass_type, &bkr->identifier);




More information about the Bf-blender-cvs mailing list