[Bf-blender-cvs] [738d942d291] master: Correct error in recent use of PyC_Long_*

Campbell Barton noreply at git.blender.org
Thu Aug 24 18:07:48 CEST 2017


Commit: 738d942d291e670c0d0e8df93efd74f40189432a
Author: Campbell Barton
Date:   Fri Aug 25 02:09:23 2017 +1000
Branches: master
https://developer.blender.org/rB738d942d291e670c0d0e8df93efd74f40189432a

Correct error in recent use of PyC_Long_*

Regression in 46cf33bf0

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

M	source/blender/python/bmesh/bmesh_py_types.c

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

diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c
index faaa2aecb4c..bd2d818c3a3 100644
--- a/source/blender/python/bmesh/bmesh_py_types.c
+++ b/source/blender/python/bmesh/bmesh_py_types.c
@@ -134,7 +134,7 @@ static int bpy_bm_elem_hflag_set(BPy_BMElem *self, PyObject *value, void *flag)
 	else {
 		BM_elem_flag_set(self->ele, hflag, param);
 	}
-	return -1;
+	return 0;
 }
 
 PyDoc_STRVAR(bpy_bm_elem_index_doc,



More information about the Bf-blender-cvs mailing list