Revert "RNA define: check and report invalid usages of ID pointers properties."

This reverts commit f39fbb3e60.

Code is not valid, `DefRNA.laststruct` does not always point to the
proper struct when defined from Python, need to be done differently.
This commit is contained in:
Bastien Montagne 2020-11-16 17:11:48 +01:00
parent c48063d1f6
commit c1d8df47f6
1 changed files with 0 additions and 7 deletions

View File

@ -1823,13 +1823,6 @@ void RNA_def_property_struct_runtime(PropertyRNA *prop, StructRNA *type)
switch (prop->type) {
case PROP_POINTER: {
if ((srna->flag & STRUCT_NO_DATABLOCK_IDPROPERTIES) != 0 && (type->flag & STRUCT_ID) != 0) {
CLOG_ERROR(&LOG,
"Struct \"%s\" (probably an operator or keymap) does not allow pointer "
"properties to ID datablocks.",
srna->identifier);
return;
}
PointerPropertyRNA *pprop = (PointerPropertyRNA *)prop;
pprop->type = type;