Cleanup: Fix MSVC warning in mantaflow
This resolves the following MSVC warning: warning C4805: '&=': unsafe mix of type 'int' and type 'bool' in operation
This commit is contained in:
parent
479ce00809
commit
6438fc4f79
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue