Fix for #29 Normal Generation by Smoothing Group Id - Commit 4

This commit is contained in:
gopalss
2018-01-30 10:55:10 -05:00
parent 1754669b07
commit 78c7c9011a

View File

@@ -151,8 +151,7 @@ static std::string GetBaseDir(const std::string& filepath) {
static bool FileExists(const std::string& abs_filename) { static bool FileExists(const std::string& abs_filename) {
bool ret; bool ret;
FILE* fp; FILE* fp = fopen(abs_filename.c_str(), "rb");
fopen_s(&fp, abs_filename.c_str(), "rb");
if (fp) { if (fp) {
ret = true; ret = true;
fclose(fp); fclose(fp);