diff options
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_view3d/CMakeLists.txt | 4 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/CMakeLists.txt b/source/blender/editors/space_view3d/CMakeLists.txt index dd81af5977c..9ab2dbb632c 100644 --- a/source/blender/editors/space_view3d/CMakeLists.txt +++ b/source/blender/editors/space_view3d/CMakeLists.txt @@ -91,4 +91,8 @@ if(WITH_FREESTYLE) add_definitions(-DWITH_FREESTYLE) endif() +if(WITH_OPENVDB) + add_definitions(-DWITH_OPENVDB) +endif() + blender_add_lib(bf_editor_space_view3d "${SRC}" "${INC}" "${INC_SYS}") diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 57bff33e080..963b4b38193 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -8535,12 +8535,14 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, const short BKE_boundbox_init_from_minmax(&bb, p0, p1); draw_box(bb.vec, false); +#ifdef WITH_OPENVDB glLoadMatrixf(rv3d->viewmat); if (sds->density) OpenVDB_draw_primitive(sds->density, true, true, true, true); if (sds->density_high) OpenVDB_draw_primitive(sds->density_high, true, true, true, true); glMultMatrixf(sds->fluidmat); +#endif } /* don't show smoke before simulation starts, this could be made an option in the future */ |