diff options
author | Bastien Montagne <bastien@blender.org> | 2020-07-08 19:08:08 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-07-08 19:08:08 +0300 |
commit | e4926c167bac80297bd1808e020510ec0d17369f (patch) | |
tree | fb96036badb746e21763351f40e9da853ba1ff81 /source/blender/makesrna | |
parent | f4a39cafa1e8b003b2aaf3deba73bd8cff7a822f (diff) |
Fix T78718: Crash when deleting particle system modifier with the X Shortcut.
Again those backward pointers not properly flagged in RNA, hence
generating infinite loops.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 6312c84cf9f..8d84b971a8c 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -8361,6 +8361,8 @@ static void rna_def_node_socket(BlenderRNA *brna) RNA_def_property_pointer_funcs(prop, "rna_NodeSocket_node_get", NULL, NULL, NULL); RNA_def_property_struct_type(prop, "Node"); RNA_def_property_clear_flag(prop, PROP_EDITABLE); + RNA_def_property_flag(prop, PROP_PTR_NO_OWNERSHIP); + RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON); RNA_def_property_ui_text(prop, "Node", "Node owning this socket"); /* NB: the type property is used by standard sockets. |