mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user