diff options
| author | Ray <raysan5@gmail.com> | 2019-09-19 13:36:55 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2019-09-19 13:36:55 +0200 |
| commit | 741afde3bcc337f60c50337fef05531363ece120 (patch) | |
| tree | a5fb1cb3a2e663b47ac61102e294b595f68cd6fe | |
| parent | 314c4061df021425bce7cd173ebfa9d371f414cb (diff) | |
| download | raylib-741afde3bcc337f60c50337fef05531363ece120.tar.gz raylib-741afde3bcc337f60c50337fef05531363ece120.zip | |
Review PR formatting
| -rw-r--r-- | src/models.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/models.c b/src/models.c index 0d4c3619..3e0cce44 100644 --- a/src/models.c +++ b/src/models.c @@ -669,9 +669,7 @@ Model LoadModel(const char *fileName) model.materials = (Material *)RL_CALLOC(model.materialCount, sizeof(Material)); model.materials[0] = LoadMaterialDefault(); - if (model.meshMaterial==NULL) { - model.meshMaterial = (int *)RL_CALLOC(model.meshCount, sizeof(int)); - } + if (model.meshMaterial == NULL) model.meshMaterial = (int *)RL_CALLOC(model.meshCount, sizeof(int)); } return model; @@ -2863,10 +2861,8 @@ static Model LoadOBJ(const char *fileName) // Assign mesh material for current mesh model.meshMaterial[m] = attrib.material_ids[m]; - // set unfound materials to default - if (model.meshMaterial[m] == -1) { - model.meshMaterial[m] = 0; - } + // Set unfound materials to default + if (model.meshMaterial[m] == -1) model.meshMaterial[m] = 0; } // Init model materials |
