Corrected issue with LoadMesh()
This commit is contained in:
parent
a728376cdf
commit
38a13b76d1
2 changed files with 16 additions and 16 deletions
|
@ -54,8 +54,8 @@ int main()
|
|||
{
|
||||
if (IsFileExtension(droppedFiles[0], ".obj"))
|
||||
{
|
||||
UnloadMesh(&model.meshes[0]);
|
||||
model.meshes[0] = LoadMesh(droppedFiles[0]);
|
||||
for (int i = 0; i < model.meshCount; i++) UnloadMesh(&model.meshes[i]);
|
||||
model.meshes = LoadMeshes(droppedFiles[0], &model.meshCount);
|
||||
bounds = MeshBoundingBox(model.meshes[0]);
|
||||
}
|
||||
else if (IsFileExtension(droppedFiles[0], ".png"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue