diff options
author | numzero <numzer0@yandex.ru> | 2023-03-25 10:42:11 +0300 |
---|---|---|
committer | numzero <numzer0@yandex.ru> | 2023-03-25 10:42:47 +0300 |
commit | d97d1708d68a98c039db8a06c4110bfc961d3fb1 (patch) | |
tree | 1a90cd7a34793982aa9376468feb41e67d2b7cdc /source/Irrlicht/COBJMeshFileLoader.cpp | |
parent | ba77d01c91a363ad932ecd26c3eaba82ddf7a6f0 (diff) | |
parent | 799c8b936f9a2cc4f3a8bc56237fb9a8dedf853e (diff) | |
download | irrlicht-d97d1708d68a98c039db8a06c4110bfc961d3fb1.tar.xz |
Resolve conflicts with master
Diffstat (limited to 'source/Irrlicht/COBJMeshFileLoader.cpp')
-rw-r--r-- | source/Irrlicht/COBJMeshFileLoader.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/source/Irrlicht/COBJMeshFileLoader.cpp b/source/Irrlicht/COBJMeshFileLoader.cpp index c4be102..43ea51e 100644 --- a/source/Irrlicht/COBJMeshFileLoader.cpp +++ b/source/Irrlicht/COBJMeshFileLoader.cpp @@ -24,23 +24,18 @@ namespace scene #endif
//! Constructor
-COBJMeshFileLoader::COBJMeshFileLoader(scene::ISceneManager* smgr, io::IFileSystem* fs)
-: SceneManager(smgr), FileSystem(fs)
+COBJMeshFileLoader::COBJMeshFileLoader(scene::ISceneManager* smgr)
+: SceneManager(smgr)
{
#ifdef _DEBUG
setDebugName("COBJMeshFileLoader");
#endif
-
- if (FileSystem)
- FileSystem->grab();
}
//! destructor
COBJMeshFileLoader::~COBJMeshFileLoader()
{
- if (FileSystem)
- FileSystem->drop();
}
@@ -76,7 +71,6 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file) u32 smoothingGroup=0;
const io::path fullName = file->getFileName();
- const io::path relPath = FileSystem->getFileDir(fullName)+"/";
c8* buf = new c8[filesize];
memset(buf, 0, filesize);
@@ -230,7 +224,7 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file) v.Pos = vertexBuffer[Idx[0]];
else
{
- os::Printer::log("Invalid vertex index in this line:", wordBuffer.c_str(), ELL_ERROR);
+ os::Printer::log("Invalid vertex index in this line", wordBuffer.c_str(), ELL_ERROR);
delete [] buf;
return 0;
}
|