[Bf-blender-cvs] [abddd7d5f91] master: Fix T83566: bpy.props.CollectionProperty gives incorrect error
Campbell Barton
noreply at git.blender.org
Wed Dec 9 08:48:15 CET 2020
Commit: abddd7d5f91a6b00617d4eac8616d54490d45e8d
Author: Campbell Barton
Date: Wed Dec 9 18:46:07 2020 +1100
Branches: master
https://developer.blender.org/rBabddd7d5f91a6b00617d4eac8616d54490d45e8d
Fix T83566: bpy.props.CollectionProperty gives incorrect error
Error in commit a7b3047cefcbfae4d8b13e15026497fd5ae92730.
===================================================================
M source/blender/python/intern/bpy_props.c
===================================================================
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c
index d45c8e8b131..9d69d91c8c8 100644
--- a/source/blender/python/intern/bpy_props.c
+++ b/source/blender/python/intern/bpy_props.c
@@ -3494,7 +3494,6 @@ PyObject *BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw)
if (!RNA_struct_is_a(ptype, &RNA_PropertyGroup)) {
PyErr_Format(PyExc_TypeError,
"CollectionProperty(...) expected an RNA type derived from %.200s",
- RNA_struct_ui_name(&RNA_ID),
RNA_struct_ui_name(&RNA_PropertyGroup));
return NULL;
}
More information about the Bf-blender-cvs
mailing list