Add particle system rna pointer property to the particle system modifier

This commit is contained in:
Matt Ebb
2010-06-06 08:51:53 +00:00
parent 6e0340d0b5
commit 8adf33c8a4

View File

@@ -1547,11 +1547,17 @@ static void rna_def_modifier_meshdeform(BlenderRNA *brna)
static void rna_def_modifier_particlesystem(BlenderRNA *brna)
{
StructRNA *srna;
PropertyRNA *prop;
srna= RNA_def_struct(brna, "ParticleSystemModifier", "Modifier");
RNA_def_struct_ui_text(srna, "ParticleSystem Modifier", "Particle system simulation modifier");
RNA_def_struct_sdna(srna, "ParticleSystemModifierData");
RNA_def_struct_ui_icon(srna, ICON_MOD_PARTICLES);
prop= RNA_def_property(srna, "particle_system", PROP_POINTER, PROP_NONE);
RNA_def_property_flag(prop, PROP_NEVER_NULL);
RNA_def_property_pointer_sdna(prop, NULL, "psys");
RNA_def_property_ui_text(prop, "Particle System", "Particle System that this modifier controls");
}
static void rna_def_modifier_particleinstance(BlenderRNA *brna)