Skip to content
Snippets Groups Projects
Commit a0915a55 authored by Woohyung Choi's avatar Woohyung Choi
Browse files

Revert "fix parenthess bug"

This reverts commit 07a94931.
parent 07a94931
Branches
No related tags found
No related merge requests found
...@@ -106,19 +106,6 @@ bool openObj(const std::string fileName, std::vector<glm::vec3> &vertices, std:: ...@@ -106,19 +106,6 @@ bool openObj(const std::string fileName, std::vector<glm::vec3> &vertices, std::
sscanf_s(line.substr(0, charPos).c_str(), "%d%*[-//]%d", &vIndex, &vnIndex); sscanf_s(line.substr(0, charPos).c_str(), "%d%*[-//]%d", &vIndex, &vnIndex);
line.erase(0, charPos + 1); line.erase(0, charPos + 1);
} }
if (vIndex >= 1)
{
faceVertexIndicies.push_back(vIndex - 1);
}
if (uvIndex >= 1)
{
faceVertexTexCoordIndicies.push_back(uvIndex - 1);
}
if (vnIndex >= 1)
{
faceVertexNormalIndicies.push_back(vnIndex - 1);
}
} }
if (line.size() > 0) if (line.size() > 0)
...@@ -219,7 +206,6 @@ bool openObj(const std::string fileName, std::vector<glm::vec3> &vertices, std:: ...@@ -219,7 +206,6 @@ bool openObj(const std::string fileName, std::vector<glm::vec3> &vertices, std::
log_warn(infoLog, fileName + " : " + "faceVertexNormalIndices.size() : " + std::to_string(faceVertexNormalIndicies.size())); log_warn(infoLog, fileName + " : " + "faceVertexNormalIndices.size() : " + std::to_string(faceVertexNormalIndicies.size()));
} }
} }
}
ifs.close(); ifs.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment