diff options
-rw-r--r-- | source/blender/blenkernel/intern/smoke.c | 2 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/CMakeLists.txt | 4 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/smoke.c b/source/blender/blenkernel/intern/smoke.c index 7b078121eb7..d1bb997aad1 100644 --- a/source/blender/blenkernel/intern/smoke.c +++ b/source/blender/blenkernel/intern/smoke.c @@ -3626,7 +3626,7 @@ void smokeModifier_OpenVDB_export(SmokeModifierData *smd, Scene *scene, Object * void smokeModifier_OpenVDB_import(SmokeModifierData *smd, Scene *scene, Object *ob, OpenVDBCache *cache) { - UNUSED_VARS(smd, scene, ob); + UNUSED_VARS(smd, scene, ob, cache); } void smokeModifier_OpenVDB_update_transform(SmokeModifierData *smd, Scene *scene, 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 */ |