[Bf-blender-cvs] [94507a7fa7e] master: Fix T62589: Particle system Instance Collection option fails to set a user for a linked collection.
Bastien Montagne
noreply at git.blender.org
Sun Mar 17 16:02:11 CET 2019
Commit: 94507a7fa7ee61fefa2001337062c1aa4fb6379a
Author: Bastien Montagne
Date: Sun Mar 17 16:00:52 2019 +0100
Branches: master
https://developer.blender.org/rB94507a7fa7ee61fefa2001337062c1aa4fb6379a
Fix T62589: Particle system Instance Collection option fails to set a user for a linked collection.
Forgot to tag properly RNA property in rB439437fa3a44.
===================================================================
M source/blender/makesrna/intern/rna_particle.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c
index 57533862c99..9d4ef83e8a0 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -3005,7 +3005,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
prop = RNA_def_property(srna, "instance_collection", PROP_POINTER, PROP_NONE);
RNA_def_property_pointer_sdna(prop, NULL, "instance_collection");
RNA_def_property_struct_type(prop, "Collection");
- RNA_def_property_flag(prop, PROP_EDITABLE);
+ RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_REFCOUNT);
RNA_def_property_ui_text(prop, "Dupli Collection", "Show Objects in this collection in place of particles");
RNA_def_property_update(prop, 0, "rna_Particle_redo_count");
More information about the Bf-blender-cvs
mailing list