summaryrefslogtreecommitdiffhomepage
path: root/src/rmodels.c
diff options
context:
space:
mode:
authorRay <[email protected]>2023-10-08 18:10:05 +0200
committerRay <[email protected]>2023-10-08 18:10:05 +0200
commitbe8eea9edadea82395b0ebec1c8afddbed129641 (patch)
treee5c8cd15246ecbb677f43131be8abb99ee8ec048 /src/rmodels.c
parent97c2744a16ad7e6cf6b546a7a6416ec6b21e3a6c (diff)
downloadraylib-be8eea9edadea82395b0ebec1c8afddbed129641.tar.gz
raylib-be8eea9edadea82395b0ebec1c8afddbed129641.zip
Format tweaks
Diffstat (limited to 'src/rmodels.c')
-rw-r--r--src/rmodels.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rmodels.c b/src/rmodels.c
index 27fe4d85..490eac55 100644
--- a/src/rmodels.c
+++ b/src/rmodels.c
@@ -1202,7 +1202,7 @@ void UploadMesh(Mesh *mesh, bool dynamic)
// NOTE: Vertex attributes must be uploaded considering default locations points and available vertex data
// Enable vertex attributes: position (shader-location = 0)
- void *vertices = mesh->animVertices != NULL ? mesh->animVertices : mesh->vertices;
+ void *vertices = (mesh->animVertices != NULL)? mesh->animVertices : mesh->vertices;
mesh->vboId[0] = rlLoadVertexBuffer(vertices, mesh->vertexCount*3*sizeof(float), dynamic);
rlSetVertexAttribute(0, 3, RL_FLOAT, 0, 0, 0);
rlEnableVertexAttribute(0);
@@ -1218,7 +1218,7 @@ void UploadMesh(Mesh *mesh, bool dynamic)
if (mesh->normals != NULL)
{
// Enable vertex attributes: normals (shader-location = 2)
- void *normals = mesh->animNormals != NULL ? mesh->animNormals : mesh->normals;
+ void *normals = (mesh->animNormals != NULL)? mesh->animNormals : mesh->normals;
mesh->vboId[2] = rlLoadVertexBuffer(normals, mesh->vertexCount*3*sizeof(float), dynamic);
rlSetVertexAttribute(2, 3, RL_FLOAT, 0, 0, 0);
rlEnableVertexAttribute(2);
@@ -5585,7 +5585,7 @@ static Model LoadM3D(const char *fileName)
if (!m3d || M3D_ERR_ISFATAL(m3d->errcode))
{
- TRACELOG(LOG_WARNING, "MODEL: [%s] Failed to load M3D data, error code %d", fileName, m3d ? m3d->errcode : -2);
+ TRACELOG(LOG_WARNING, "MODEL: [%s] Failed to load M3D data, error code %d", fileName, m3d? m3d->errcode : -2);
if (m3d) m3d_free(m3d);
UnloadFileData(fileData);
return model;
@@ -5910,7 +5910,7 @@ static ModelAnimation *LoadModelAnimationsM3D(const char *fileName, int *animCou
if (!m3d || M3D_ERR_ISFATAL(m3d->errcode))
{
- TRACELOG(LOG_WARNING, "MODEL: [%s] Failed to load M3D data, error code %d", fileName, m3d ? m3d->errcode : -2);
+ TRACELOG(LOG_WARNING, "MODEL: [%s] Failed to load M3D data, error code %d", fileName, m3d? m3d->errcode : -2);
UnloadFileData(fileData);
return NULL;
}