Changed love.graphics.newMesh, Mesh:setVertex, and Mesh:setVertices to default the u,v arguments to 0,0 instead of requiring them

This commit is contained in:
Alex Szpakowski
2014-02-27 05:38:46 -04:00
parent fe5e7c17e7
commit ecf37320a9
3 changed files with 14 additions and 10 deletions
+6 -2
View File
@@ -38,8 +38,12 @@ void Memoizer::remove(void *key)
void *Memoizer::find(void *key)
{
if (objectMap.count(key)) return objectMap[key];
return NULL;
auto it = objectMap.find(key);
if (it != objectMap.end())
return it->second;
else
return nullptr;
}
} // love