diff options
author | Bastien Montagne <bastien@blender.org> | 2020-11-16 19:11:48 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-11-16 19:13:12 +0300 |
commit | c1d8df47f60f590f0c945ca1ee61adcec226a1b0 (patch) | |
tree | 1f0c121b4cc8bd9da52a5b0e22d264cd614a3b6e | |
parent | c48063d1f64bd8cb102bbd9cdc7c58e861e654dc (diff) |
Revert "RNA define: check and report invalid usages of ID pointers properties."
This reverts commit f39fbb3e604611b63c69661dd22ca987fb1d8791.
Code is not valid, `DefRNA.laststruct` does not always point to the
proper struct when defined from Python, need to be done differently.
-rw-r--r-- | source/blender/makesrna/intern/rna_define.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source/blender/makesrna/intern/rna_define.c b/source/blender/makesrna/intern/rna_define.c index b72afe88dda..1b0a2fca0ce 100644 --- a/source/blender/makesrna/intern/rna_define.c +++ b/source/blender/makesrna/intern/rna_define.c @@ -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; |