[Bf-blender-cvs] [0dcc5572d6a] blender-v2.81-release: Fix (unreported) VSE scene strip should not be able to set the scene to self

Philipp Oeser noreply at git.blender.org
Wed Oct 16 09:43:07 CEST 2019


Commit: 0dcc5572d6ab625056f3f89cfaa917bcc6625d6d
Author: Philipp Oeser
Date:   Tue Oct 15 18:14:43 2019 +0200
Branches: blender-v2.81-release
https://developer.blender.org/rB0dcc5572d6ab625056f3f89cfaa917bcc6625d6d

Fix (unreported) VSE scene strip should not be able to set the scene to
self

Spotted while looking into T70845

Reviewers: sergey, ISS, campbellbarton

Differential Revision: https://developer.blender.org/D6073

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

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

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

diff --git a/source/blender/makesrna/intern/rna_sequencer.c b/source/blender/makesrna/intern/rna_sequencer.c
index c42cf91944e..31ead989f25 100644
--- a/source/blender/makesrna/intern/rna_sequencer.c
+++ b/source/blender/makesrna/intern/rna_sequencer.c
@@ -2225,7 +2225,7 @@ static void rna_def_scene(BlenderRNA *brna)
   RNA_def_struct_sdna(srna, "Sequence");
 
   prop = RNA_def_property(srna, "scene", PROP_POINTER, PROP_NONE);
-  RNA_def_property_flag(prop, PROP_EDITABLE);
+  RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK);
   RNA_def_property_ui_text(prop, "Scene", "Scene that this sequence uses");
   RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update");



More information about the Bf-blender-cvs mailing list