Fix newMesh(format, ...). Fix Mesh:attachAttribute.

Deprecate the mesh argument variant of attachAttribute in favor of the buffer argument variant.
This commit is contained in:
Alex Szpakowski
2020-07-21 21:46:45 -03:00
parent c2be89f130
commit 7ad5e5a21a
3 changed files with 6 additions and 3 deletions
+1
View File
@@ -300,6 +300,7 @@ int w_Mesh_attachAttribute(lua_State *L)
buffer = mesh->getVertexBuffer();
if (buffer == nullptr)
return luaL_error(L, "Mesh does not have its own vertex buffer.");
luax_markdeprecated(L, "Mesh:attachAttribute(name, mesh, ...)", API_METHOD, DEPRECATED_REPLACED, "Mesh:attachAttribute(name, buffer, ...)");
}
AttributeStep step = STEP_PER_VERTEX;