diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-02 12:34:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-02 12:34:32 +0300 |
commit | f130d4c0a7d1b174454e423f3cdf753e12a09dce (patch) | |
tree | 4b99f0e763179b8cd37e5ed0bdf5cb7d19906975 /source/blender/editors/physics | |
parent | ca3ade6ac483a529cf895610c7d2c1b5c351fb1a (diff) |
bugfix [#24455] Scene is left at last rendered frame from rendering an animation
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/physics_fluid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/physics/physics_fluid.c b/source/blender/editors/physics/physics_fluid.c index b1c373e7a91..adf5d00355e 100644 --- a/source/blender/editors/physics/physics_fluid.c +++ b/source/blender/editors/physics/physics_fluid.c @@ -420,7 +420,7 @@ static void fluid_init_all_channels(bContext *C, Object *UNUSED(fsDomain), Fluid /* Modifying the global scene isn't nice, but we can do it in * this part of the process before a threaded job is created */ scene->r.cfra = (int)eval_time; - ED_update_for_newframe(C, 1); + ED_update_for_newframe(CTX_data_main(C), scene, CTX_wm_screen(C), 1); /* now scene data should be current according to animation system, so we fill the channels */ @@ -910,7 +910,7 @@ int fluidsimBake(bContext *C, ReportList *reports, Object *fsDomain) /* reset to original current frame */ scene->r.cfra = origFrame; - ED_update_for_newframe(C, 1); + ED_update_for_newframe(CTX_data_main(C), scene, CTX_wm_screen(C), 1); /* ---- XXX: No Time animation curve for now, leaving this code here for reference |