[Bf-blender-cvs] [2b7ff6d] master: Bake-API: increase cage extrusion/ray distance limit

Dalai Felinto noreply at git.blender.org
Fri Jun 13 20:55:16 CEST 2014


Commit: 2b7ff6de069aab63ca10b7fd6f85a133d136a56c
Author: Dalai Felinto
Date:   Fri Jun 13 15:53:43 2014 -0300
https://developer.blender.org/rB2b7ff6de069aab63ca10b7fd6f85a133d136a56c

Bake-API: increase cage extrusion/ray distance limit

Fix to include in 2.71 (asked via BlenderArtist)

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

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 8731a60..cdb23b2 100644
--- a/source/blender/editors/object/object_bake_api.c
+++ b/source/blender/editors/object/object_bake_api.c
@@ -1267,8 +1267,8 @@ void OBJECT_OT_bake(wmOperatorType *ot)
 	            "Extends the baked result as a post process filter", 0, 64);
 	RNA_def_boolean(ot->srna, "use_selected_to_active", false, "Selected to Active",
 	                "Bake shading on the surface of selected objects to the active object");
-	RNA_def_float(ot->srna, "cage_extrusion", 0.0, 0.0, 1.0, "Cage Extrusion",
-	              "Distance to use for the inward ray cast when using selected to active", 0.0, 1.0);
+	RNA_def_float(ot->srna, "cage_extrusion", 0.0f, 0.0f, FLT_MAX, "Cage Extrusion",
+	              "Distance to use for the inward ray cast when using selected to active", 0.0f, 1.0f);
 	RNA_def_string(ot->srna, "cage_object", NULL, MAX_NAME, "Cage Object",
 	               "Object to use as cage, instead of calculating the cage from the active object with cage extrusion");
 	RNA_def_enum(ot->srna, "normal_space", normal_space_items, R_BAKE_SPACE_TANGENT, "Normal Space",




More information about the Bf-blender-cvs mailing list