Commit 0e9a3e7f authored by Patric Schmitz's avatar Patric Schmitz

fix nasty sign-swallowing parser bug

parent c31511ca
......@@ -12,8 +12,8 @@ DataReader::DataReader()
glm::mat4 DataReader::ReadMat4(std::string strMatrix) {
glm::mat4 mat;
// remove [ ...] brackets
strMatrix.erase(0, 2);
// remove [ ] brackets
strMatrix.erase(0, 1);
strMatrix.erase(strMatrix.length() - 1, 1);
std::istringstream ssMatrix(strMatrix);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment