[Bf-blender-cvs] [c1c1e3ea887] soc-2020-io-performance: Merge branch 'exporter_n' into soc-2020-io-performance
Ankit Meel
noreply at git.blender.org
Wed Sep 16 13:05:55 CEST 2020
Commit: c1c1e3ea88702e45796d4ca72d06a5ba29eb25a0
Author: Ankit Meel
Date: Wed Sep 16 15:57:09 2020 +0530
Branches: soc-2020-io-performance
https://developer.blender.org/rBc1c1e3ea88702e45796d4ca72d06a5ba29eb25a0
Merge branch 'exporter_n' into soc-2020-io-performance
===================================================================
===================================================================
diff --cc source/blender/io/wavefront_obj/intern/obj_export_file_writer.hh
index 847e32d1e6e,ff7e2b06999..c4b60400aee
--- a/source/blender/io/wavefront_obj/intern/obj_export_file_writer.hh
+++ b/source/blender/io/wavefront_obj/intern/obj_export_file_writer.hh
@@@ -61,9 -69,13 +69,12 @@@ class OBJWriter
OBJWriter(const OBJExportParams &export_params) : export_params_(export_params)
{
}
-
~OBJWriter()
{
- fclose(outfile_);
+ if (outfile_ && fclose(outfile_)) {
+ std::cerr << "Error: could not close the OBJ file properly, file may be corrupted."
+ << std::endl;
+ }
}
bool init_writer(const char *filepath);
More information about the Bf-blender-cvs
mailing list