mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-09-24 13:43:14 +08:00
Fix return
location.
This commit is contained in:
parent
493cad4e64
commit
0b01361d15
@ -470,7 +470,8 @@ bool LoadGLTF(const std::string &filename, float scale,
|
|||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
} // namespace example
|
} // namespace example
|
||||||
|
@ -443,7 +443,7 @@ bool Renderer::Render(float* rgba, float* aux_rgba, int* sample_counts,
|
|||||||
float specular_col[3];
|
float specular_col[3];
|
||||||
|
|
||||||
//tigra: material_id is ok
|
//tigra: material_id is ok
|
||||||
if(material_id>=0 && material_id<materials.size())
|
if(material_id<materials.size())
|
||||||
{
|
{
|
||||||
//printf("ok mat\n");
|
//printf("ok mat\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user