RNA: fix for bug in particle code, hopefully this solves the crash?
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 18 Feb 2009 21:28:04 +0000 (21:28 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 18 Feb 2009 21:28:04 +0000 (21:28 +0000)
source/blender/makesrna/intern/rna_particle.c

index 6f3bbc5bf44f14d8e8389dd67ca79bfc9944dbe3..fbf4e048f960c770d0503ab9d3723aa1c09f53bd 100644 (file)
@@ -34,6 +34,7 @@
 #include "DNA_particle_types.h"
 
 #ifdef RNA_RUNTIME
+
 static void rna_PartSettings_start_set(struct PointerRNA *ptr, float value)
 {
        ParticleSettings *settings = (ParticleSettings*)ptr->data;
@@ -176,7 +177,8 @@ static void rna_def_particle_data(BlenderRNA *brna)
                {PARS_DEAD, "DEAD", "Dead", ""},
                {PARS_UNBORN, "UNBORN", "Unborn", ""},
                {PARS_ALIVE, "ALIVE", "Alive", ""},
-               {PARS_DYING, "DYING", "Dying", ""}
+               {PARS_DYING, "DYING", "Dying", ""},
+               {0, NULL, NULL, NULL}
        };
 
        srna = RNA_def_struct(brna, "Particle", NULL);