Fix T83566: bpy.props.CollectionProperty gives incorrect error
Error in commit a7b3047cef
.
This commit is contained in:
parent
ebe4bf6286
commit
abddd7d5f9
Notes:
blender-bot
2023-02-14 02:27:51 +01:00
Referenced by issue #83566, bpy.props.CollectionProperty() gives incorrect error message if passed a type which does not subclass bpy.types.PropertyGroup
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue