diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-12-14 17:45:56 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-12-14 17:45:56 +0300 |
commit | 93cbc840e088ca0ecb62f96596d2f7c46e5635ee (patch) | |
tree | e9bf495ac6e5026741bf489f0b6860ffa917b314 /source/blender/editors/space_view3d/drawobject.c | |
parent | 295ce322e3ff3c2536336057126c1605358965b5 (diff) |
Fix for [#25198] Smoke gets shown before simulation starts
* Smoke is now only drawn/rendered after the simulation frame range starts.
* This does not apply to simulation end frame though, so that any remaining smoke can for example be faded away nicely through material settings.
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index b28be7bad86..055a12348c9 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -6119,7 +6119,9 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, int flag) // only draw domains if(smd->domain && smd->domain->fluid) { - if(!smd->domain->wt || !(smd->domain->viewsettings & MOD_SMOKE_VIEW_SHOWBIG)) + if(CFRA < smd->domain->point_cache[0]->startframe) + ; /* don't show smoke before simulation starts, this could be made an option in the future */ + else if(!smd->domain->wt || !(smd->domain->viewsettings & MOD_SMOKE_VIEW_SHOWBIG)) { // #if 0 smd->domain->tex = NULL; |