Fix trailing whitespace;

This commit is contained in:
bjornbytes 2020-11-21 14:37:47 -07:00
parent 80a33c0544
commit eb319fdade
2 changed files with 2 additions and 3 deletions

View File

@ -116,7 +116,7 @@ static int l_lovrShapeGetPosition(lua_State* L) {
static int l_lovrShapeSetPosition(lua_State* L) {
Shape* shape = luax_checkshape(L, 1);
lovrAssert(lovrShapeGetCollider(shape) != NULL, "Shape must be attached to collider");
float position[4];
float position[4];
luax_readvec3(L, 2, position, NULL);
lovrShapeSetPosition(shape, position[0], position[1], position[2]);
return 0;

View File

@ -907,8 +907,7 @@ void lovrCylinderShapeSetLength(CylinderShape* cylinder, float length) {
MeshShape* lovrMeshShapeInit(MeshShape* mesh, int vertexCount, float vertices[], int indexCount, dTriIndex indices[]) {
dTriMeshDataID dataID = dGeomTriMeshDataCreate();
dGeomTriMeshDataBuildSingle(dataID, vertices, 3 * sizeof(float), vertexCount,
indices, indexCount, 3 * sizeof(dTriIndex));
dGeomTriMeshDataBuildSingle(dataID, vertices, 3 * sizeof(float), vertexCount, indices, indexCount, 3 * sizeof(dTriIndex));
dGeomTriMeshDataPreprocess2(dataID, (1U << dTRIDATAPREPROCESS_BUILD_FACE_ANGLES), NULL);
mesh->id = dCreateTriMesh(0, dataID, 0, 0, 0);
mesh->type = SHAPE_MESH;