Smoke viewport: also draw voxel size indicator when adaptive domain is
authorKévin Dietrich <kevin.dietrich@mailoo.org>
Mon, 25 Jan 2016 14:05:45 +0000 (15:05 +0100)
committerKévin Dietrich <kevin.dietrich@mailoo.org>
Mon, 25 Jan 2016 15:12:31 +0000 (16:12 +0100)
not used.

This is kinda how it was in the openvdb branch but was accidentaly put
in the adaptive domain draw scope during final review.

source/blender/editors/space_view3d/drawobject.c

index 7120daf00937b693f089508239a446e0bd23b447..8f73243edb2f96fa8f33b41f80024a94a7d02e01 100644 (file)
@@ -7811,15 +7811,18 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, const short
                        glLoadMatrixf(rv3d->viewmat);
                        glMultMatrixf(ob->obmat);
 
-                       /* draw adaptive domain bounds */
-                       if ((sds->flags & MOD_SMOKE_ADAPTIVE_DOMAIN) && !render_override) {
-                               /* draw domain max bounds */
+                       if (!render_override) {
                                BoundBox bb;
                                float p0[3], p1[3];
-                               VECSUBFAC(p0, sds->p0, sds->cell_size, sds->adapt_res);
-                               VECADDFAC(p1, sds->p1, sds->cell_size, sds->adapt_res);
-                               BKE_boundbox_init_from_minmax(&bb, p0, p1);
-                               draw_box(bb.vec, false);
+
+                               /* draw adaptive domain bounds */
+                               if ((sds->flags & MOD_SMOKE_ADAPTIVE_DOMAIN)) {
+                                       /* draw domain max bounds */
+                                       VECSUBFAC(p0, sds->p0, sds->cell_size, sds->adapt_res);
+                                       VECADDFAC(p1, sds->p1, sds->cell_size, sds->adapt_res);
+                                       BKE_boundbox_init_from_minmax(&bb, p0, p1);
+                                       draw_box(bb.vec, false);
+                               }
 
 #if 0
                                /* draw base resolution bounds */