[Bf-blender-cvs] [9df46020351] master: PyAPI: message subscribe option arg now optional

Campbell Barton noreply at git.blender.org
Thu Feb 7 00:32:30 CET 2019


Commit: 9df460203517a791107c6da816ab21ace803d5f4
Author: Campbell Barton
Date:   Thu Feb 7 09:29:01 2019 +1100
Branches: master
https://developer.blender.org/rB9df460203517a791107c6da816ab21ace803d5f4

PyAPI: message subscribe option arg now optional

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

M	source/blender/python/intern/bpy_msgbus.c

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

diff --git a/source/blender/python/intern/bpy_msgbus.c b/source/blender/python/intern/bpy_msgbus.c
index 8dfbf3f6089..ff1189ae924 100644
--- a/source/blender/python/intern/bpy_msgbus.c
+++ b/source/blender/python/intern/bpy_msgbus.c
@@ -248,7 +248,7 @@ static PyObject *bpy_msgbus_subscribe_rna(PyObject *UNUSED(self), PyObject *args
 		"options",
 		NULL,
 	};
-	static _PyArg_Parser _parser = {"$OOO!OO!:subscribe_rna", _keywords, 0};
+	static _PyArg_Parser _parser = {"$OOO!O|O!:subscribe_rna", _keywords, 0};
 	if (!_PyArg_ParseTupleAndKeywordsFast(
 	        args, kw, &_parser,
 	        &py_sub, &py_owner,



More information about the Bf-blender-cvs mailing list