[Bf-blender-cvs] [a093fda] bake-cycles: Cycles-Bake: accept relative path in filepath

Dalai Felinto noreply at git.blender.org
Wed Apr 23 02:47:28 CEST 2014


Commit: a093fda0698c202b214f8abbda2afbe435245f82
Author: Dalai Felinto
Date:   Thu Mar 13 10:49:49 2014 -0300
https://developer.blender.org/rBa093fda0698c202b214f8abbda2afbe435245f82

Cycles-Bake: accept relative path in filepath

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

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

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

diff --git a/source/blender/editors/object/object_bake_new.c b/source/blender/editors/object/object_bake_new.c
index e36f5cd..60df9d6 100644
--- a/source/blender/editors/object/object_bake_new.c
+++ b/source/blender/editors/object/object_bake_new.c
@@ -444,6 +444,8 @@ static int bake_exec(bContext *C, wmOperator *op)
 	else {
 		/* save the result */
 		if (is_external) {
+			BLI_path_abs(filepath, bmain->name);
+
 			/* save it externally */
 			ok = write_external_bake_pixels(filepath, pixel_array_render, result, width, height, depth, is_linear, margin);
 			if (!ok) {




More information about the Bf-blender-cvs mailing list