diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-01-27 20:46:55 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-01-27 20:46:55 +0300 |
commit | 10eb711e1657a7f49e30a44bae9177ec3590c6c0 (patch) | |
tree | da26896874a7e1a8512b656c29da3feda3ad9ffe /intern/cycles/blender/blender_session.cpp | |
parent | c8103efbe3bfa2487a2866a7cf22e3b7681338ef (diff) |
Fix: Building without WITH_MOD_FLUID
When MOD_FLUID was off and WITH_CYCLES was on there was a build error.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D6542
Diffstat (limited to 'intern/cycles/blender/blender_session.cpp')
-rw-r--r-- | intern/cycles/blender/blender_session.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/blender/blender_session.cpp b/intern/cycles/blender/blender_session.cpp index 924807350f9..e2dea24fdd1 100644 --- a/intern/cycles/blender/blender_session.cpp +++ b/intern/cycles/blender/blender_session.cpp @@ -1345,7 +1345,7 @@ bool BlenderSession::builtin_image_float_pixels(const string &builtin_name, if (!b_domain) { return false; } - +#if WITH_FLUID int3 resolution = get_int3(b_domain.domain_resolution()); int length, amplify = (b_domain.use_noise()) ? b_domain.noise_scale() : 1; @@ -1411,7 +1411,7 @@ bool BlenderSession::builtin_image_float_pixels(const string &builtin_name, pixels[0] = 0.0f; return false; } - +#endif fprintf(stderr, "Cycles error: unexpected smoke volume resolution, skipping\n"); } else { |