[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29267] trunk/blender/source/blender/ makesrna/intern/rna_modifier.c: Add particle system rna pointer property to the particle system modifier

Matt Ebb matt at mke3.net
Sun Jun 6 10:51:53 CEST 2010


Revision: 29267
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29267
Author:   broken
Date:     2010-06-06 10:51:53 +0200 (Sun, 06 Jun 2010)

Log Message:
-----------
Add particle system rna pointer property to the particle system modifier

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_modifier.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_modifier.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_modifier.c	2010-06-06 08:25:42 UTC (rev 29266)
+++ trunk/blender/source/blender/makesrna/intern/rna_modifier.c	2010-06-06 08:51:53 UTC (rev 29267)
@@ -1547,11 +1547,17 @@
 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)





More information about the Bf-blender-cvs mailing list