[Bf-blender-cvs] [e4926c167ba] master: Fix T78718: Crash when deleting particle system modifier with the X Shortcut.

Bastien Montagne noreply at git.blender.org
Wed Jul 8 18:09:13 CEST 2020


Commit: e4926c167bac80297bd1808e020510ec0d17369f
Author: Bastien Montagne
Date:   Wed Jul 8 18:08:08 2020 +0200
Branches: master
https://developer.blender.org/rBe4926c167bac80297bd1808e020510ec0d17369f

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.

===================================================================

M	source/blender/makesrna/intern/rna_nodetree.c

===================================================================

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.



More information about the Bf-blender-cvs mailing list