Fix T83566: bpy.props.CollectionProperty gives incorrect error
Error in commit a7b3047cef
.
This commit is contained in:
@@ -3494,7 +3494,6 @@ PyObject *BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw)
|
|||||||
if (!RNA_struct_is_a(ptype, &RNA_PropertyGroup)) {
|
if (!RNA_struct_is_a(ptype, &RNA_PropertyGroup)) {
|
||||||
PyErr_Format(PyExc_TypeError,
|
PyErr_Format(PyExc_TypeError,
|
||||||
"CollectionProperty(...) expected an RNA type derived from %.200s",
|
"CollectionProperty(...) expected an RNA type derived from %.200s",
|
||||||
RNA_struct_ui_name(&RNA_ID),
|
|
||||||
RNA_struct_ui_name(&RNA_PropertyGroup));
|
RNA_struct_ui_name(&RNA_PropertyGroup));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user