mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-30 23:30:27 +02:00
Test that minimal triangle returns some mesh
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
#include "IAnimatedMesh.h"
|
||||
#include "IReadFile.h"
|
||||
#include "path.h"
|
||||
#include "SAnimatedMesh.h"
|
||||
|
||||
namespace irr
|
||||
{
|
||||
@ -22,7 +23,14 @@ bool CGLTFMeshFileLoader::isALoadableFileExtension(
|
||||
|
||||
IAnimatedMesh* CGLTFMeshFileLoader::createMesh(io::IReadFile* file)
|
||||
{
|
||||
return nullptr;
|
||||
if (file->getSize() == 0) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// sorry Bjarne
|
||||
SAnimatedMesh* mesh { new SAnimatedMesh {} };
|
||||
|
||||
return mesh;
|
||||
}
|
||||
|
||||
} // namespace irr
|
||||
|
Reference in New Issue
Block a user