diff options
author | Matt Ebb <matt@mke3.net> | 2010-06-06 12:51:53 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-06-06 12:51:53 +0400 |
commit | 8adf33c8a40c0fed157f7ae722a8779af970cdde (patch) | |
tree | cbf244f5c94b130f8490e36ac80ac13726f2642d /source/blender/makesrna/intern/rna_modifier.c | |
parent | 6e0340d0b5ee722d9b89b3cae0841ccfce1c6588 (diff) |
Add particle system rna pointer property to the particle system modifier
Diffstat (limited to 'source/blender/makesrna/intern/rna_modifier.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 0ee2360a787..32eb62567d0 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -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) |