Fluid: Fixed try/catch exception issue and unsed variable issue

Sergey just pointed this out, fixing in it the release branch to avoid any compilation issues during the actual release. Thx!
This commit is contained in:
Sebastián Barschkis 2020-02-07 11:02:55 +01:00
parent 1778efc897
commit f12b4e53aa
1 changed files with 2 additions and 1 deletions

View File

@ -2894,7 +2894,7 @@ int MANTA::updateGridFromVDB(const char *filename, float *grid)
try {
file.open();
}
catch (const openvdb::IoError) {
catch (const openvdb::IoError &) {
std::cout << "MANTA::updateGridFromVDB(): IOError, invalid OpenVDB file: " << filename
<< std::endl;
return 0;
@ -2941,6 +2941,7 @@ int MANTA::updateGridFromRaw(const char *filename, float *grid)
readBytes = gzread(gzf, grid, expectedBytes);
assert(expectedBytes == readBytes);
(void)readBytes; // Unused in release.
gzclose(gzf);
return 1;