diff options
author | Miika Hamalainen <blender@miikah.org> | 2012-05-25 13:40:56 +0400 |
---|---|---|
committer | Miika Hamalainen <blender@miikah.org> | 2012-05-25 13:40:56 +0400 |
commit | c4bbc5abfcb543563872e42a8352917682787b14 (patch) | |
tree | c06cdbdc0d19c973b9e74aa7df029f28268ee47a /source/blender/editors/space_view3d/drawobject.c | |
parent | 19dd66cf3b0108c0a74d7626b31c1b8cb9dd57fe (diff) |
Fixed smoke 3D-view issues: Preview became invisible from certain angles if domain size was < 1.0 and density+shading strength changed depended on domain size.
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index a5f3df4257a..56949fbe40c 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -6960,7 +6960,7 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, int flag) GPU_create_smoke(smd, 0); draw_volume(ar, smd->domain->tex, smd->domain->p0, smd->domain->p1, - smd->domain->res, smd->domain->dx * smd->domain->scale, + smd->domain->res, smd->domain->dx, smd->domain->tex_shadow); GPU_free_smoke(smd); // #endif @@ -7013,7 +7013,7 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, int flag) GPU_create_smoke(smd, 1); draw_volume(ar, smd->domain->tex, smd->domain->p0, smd->domain->p1, - smd->domain->res_wt, smd->domain->dx_wt * smd->domain->scale, + smd->domain->res_wt, smd->domain->dx_wt, smd->domain->tex_shadow); GPU_free_smoke(smd); } |