[Bf-blender-cvs] [6438fc4f794] master: Cleanup: Fix MSVC warning in mantaflow
Ray Molenkamp
noreply at git.blender.org
Thu Aug 27 03:07:29 CEST 2020
Commit: 6438fc4f794bd8e6f1eedc48c3812e907ecc059a
Author: Ray Molenkamp
Date: Wed Aug 26 19:07:24 2020 -0600
Branches: master
https://developer.blender.org/rB6438fc4f794bd8e6f1eedc48c3812e907ecc059a
Cleanup: Fix MSVC warning in mantaflow
This resolves the following MSVC warning:
warning C4805: '&=': unsafe mix of type 'int' and type 'bool' in operation
===================================================================
M intern/mantaflow/intern/manta_fluid_API.cpp
===================================================================
diff --git a/intern/mantaflow/intern/manta_fluid_API.cpp b/intern/mantaflow/intern/manta_fluid_API.cpp
index 530dbd49b7c..7f96a315a8e 100644
--- a/intern/mantaflow/intern/manta_fluid_API.cpp
+++ b/intern/mantaflow/intern/manta_fluid_API.cpp
@@ -456,7 +456,7 @@ int manta_smoke_ensure_fire(MANTA *smoke, struct FluidModifierData *fmd)
if (!smoke || !fmd)
return 0;
- int result = smoke->initFire(fmd);
+ bool result = smoke->initFire(fmd);
if (smoke->usingNoise()) {
result &= smoke->initFireHigh(fmd);
}
@@ -468,7 +468,7 @@ int manta_smoke_ensure_colors(MANTA *smoke, struct FluidModifierData *fmd)
if (!smoke || !fmd)
return 0;
- int result = smoke->initColors(fmd);
+ bool result = smoke->initColors(fmd);
if (smoke->usingNoise()) {
result &= smoke->initColorsHigh(fmd);
}
More information about the Bf-blender-cvs
mailing list