[Bf-blender-cvs] [8555279aa75] hair_guides_grooming: Fix incorrect RNA access function (bool instead of int property).

Lukas Tönne noreply at git.blender.org
Thu May 24 11:33:48 CEST 2018


Commit: 8555279aa75dc3b3b15c9d3377d7101f6e6dc4ea
Author: Lukas Tönne
Date:   Wed May 23 12:39:41 2018 +0100
Branches: hair_guides_grooming
https://developer.blender.org/rB8555279aa75dc3b3b15c9d3377d7101f6e6dc4ea

Fix incorrect RNA access function (bool instead of int property).

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

M	source/blender/editors/groom/editgroom_region.c

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

diff --git a/source/blender/editors/groom/editgroom_region.c b/source/blender/editors/groom/editgroom_region.c
index f138eff322a..d5d6f4da0a3 100644
--- a/source/blender/editors/groom/editgroom_region.c
+++ b/source/blender/editors/groom/editgroom_region.c
@@ -155,7 +155,7 @@ static int region_bind_exec(bContext *C, wmOperator *op)
 {
 	Object *ob = ED_object_context(C);
 	Groom *groom = ob->data;
-	const bool force_rebind = RNA_int_get(op->ptr, "force_rebind");
+	const bool force_rebind = RNA_boolean_get(op->ptr, "force_rebind");
 
 	GroomBundle *bundle = CTX_data_pointer_get_type(C, "groom_bundle", &RNA_GroomBundle).data;
 	if (!bundle)



More information about the Bf-blender-cvs mailing list