diff --git a/src/MeshInfoCmd.cpp b/src/MeshInfoCmd.cpp index b9ec387..3978ae9 100644 --- a/src/MeshInfoCmd.cpp +++ b/src/MeshInfoCmd.cpp @@ -263,10 +263,10 @@ MStatus MeshInfoCmd::doIt(const MArgList & args) std::string meshInfo_s = meshInfo.dump(4); - if (fileGen) - { + if (fileGen){ MString filePath; argData.getFlagArgument(kFileFlag, 0, filePath); + std::ofstream out(filePath.asChar()); out << meshInfo_s; out.close();