Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2009-11-04 06:01:39 +0300
committerMatt Ebb <matt@mke3.net>2009-11-04 06:01:39 +0300
commit183e698af8f8e7a04eab1e5f2023aa9363543e3a (patch)
tree02cfb62c97c3993968a206fed5f4280ff9523189 /source/blender/makesrna/intern/rna_particle.c
parent2a8ef208b2ca6d7d69f317847d1ce06a2a740c9a (diff)
Fix for [#19752] I cant get the particles to render as an object
Diffstat (limited to 'source/blender/makesrna/intern/rna_particle.c')
-rw-r--r--source/blender/makesrna/intern/rna_particle.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c
index d261bda739e..6b0c8bee8ee 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -127,6 +127,12 @@ static void rna_Particle_redo(bContext *C, PointerRNA *ptr)
particle_recalc(C, ptr, PSYS_RECALC_REDO);
}
+static void rna_Particle_redo_dependency(bContext *C, PointerRNA *ptr)
+{
+ DAG_scene_sort(CTX_data_scene(C));
+ rna_Particle_redo(C, ptr);
+}
+
static void rna_Particle_reset(bContext *C, PointerRNA *ptr)
{
particle_recalc(C, ptr, PSYS_RECALC_RESET);
@@ -1713,7 +1719,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
RNA_def_property_struct_type(prop, "Object");
RNA_def_property_flag(prop, PROP_EDITABLE);
RNA_def_property_ui_text(prop, "Dupli Object", "Show this Object in place of particles.");
- RNA_def_property_update(prop, 0, "rna_Particle_redo");
+ RNA_def_property_update(prop, 0, "rna_Particle_redo_dependency");
prop= RNA_def_property(srna, "billboard_object", PROP_POINTER, PROP_NONE);
RNA_def_property_pointer_sdna(prop, NULL, "bb_ob");