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:
authorJanne Karhu <jhkarh@gmail.com>2010-10-30 12:51:50 +0400
committerJanne Karhu <jhkarh@gmail.com>2010-10-30 12:51:50 +0400
commit210915e3c722a04920eaa18e2faad793189659c6 (patch)
tree0b866b334dc8015988837ada61a4b01f104215e2 /source/blender/makesrna/intern/rna_smoke.c
parentbd8758561f956dbdec5584cd469e0eb4455aa836 (diff)
Fix for items 3 and 8 of [#24443] Trying to bake a smoke simulation crashes blender, and other smoke bugs.
Diffstat (limited to 'source/blender/makesrna/intern/rna_smoke.c')
-rw-r--r--source/blender/makesrna/intern/rna_smoke.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_smoke.c b/source/blender/makesrna/intern/rna_smoke.c
index 53f27bc06fb..11b00e1c77f 100644
--- a/source/blender/makesrna/intern/rna_smoke.c
+++ b/source/blender/makesrna/intern/rna_smoke.c
@@ -33,6 +33,7 @@
#include "BKE_smoke.h"
#include "DNA_modifier_types.h"
+#include "DNA_object_force.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_smoke_types.h"
@@ -64,6 +65,11 @@ static void rna_Smoke_reset(Main *bmain, Scene *scene, PointerRNA *ptr)
smokeModifier_reset(settings->smd);
+ if(settings->smd && settings->smd->domain) {
+ settings->point_cache[0]->flag |= PTCACHE_OUTDATED;
+ settings->point_cache[1]->flag |= PTCACHE_OUTDATED;
+ }
+
rna_Smoke_update(bmain, scene, ptr);
}
@@ -73,6 +79,11 @@ static void rna_Smoke_reset_dependancy(Main *bmain, Scene *scene, PointerRNA *pt
smokeModifier_reset(settings->smd);
+ if(settings->smd && settings->smd->domain) {
+ settings->smd->domain->point_cache[0]->flag |= PTCACHE_OUTDATED;
+ settings->smd->domain->point_cache[1]->flag |= PTCACHE_OUTDATED;
+ }
+
rna_Smoke_dependency_update(bmain, scene, ptr);
}