Commit d55dc0f6 authored by bitplane's avatar bitplane

Added a warning when loading .ms3d v4 files, as not all of the file is loaded

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1041 dfc29bdd-3216-0410-991c-e03cc46cb475
parent fbdbc934
This diff is collapsed.
...@@ -176,10 +176,15 @@ bool CMS3DMeshFileLoader::load(io::IReadFile* file) ...@@ -176,10 +176,15 @@ bool CMS3DMeshFileLoader::load(io::IReadFile* file)
if ( pHeader->Version < 3 || pHeader->Version > 4 ) if ( pHeader->Version < 3 || pHeader->Version > 4 )
{ {
delete [] buffer; delete [] buffer;
os::Printer::log("Only Milkshape3D version 1.3 and 1.4 is supported. Loading failed", file->getFileName(), ELL_ERROR); os::Printer::log("Only Milkshape3D version 3 and 4 (1.3 to 1.8) is supported. Loading failed", file->getFileName(), ELL_ERROR);
return false; return false;
} }
if ( pHeader->Version == 4 )
{
os::Printer::log("Milkshape3D version 4 (1.8) is not fully supported. Some features may not be available.", file->getFileName(), ELL_WARNING);
}
// get pointers to data // get pointers to data
// vertices // vertices
......
...@@ -2340,6 +2340,14 @@ ...@@ -2340,6 +2340,14 @@
RelativePath="CIrrDeviceLinux.h" RelativePath="CIrrDeviceLinux.h"
> >
</File> </File>
<File
RelativePath=".\CIrrDeviceSDL.cpp"
>
</File>
<File
RelativePath=".\CIrrDeviceSDL.h"
>
</File>
<File <File
RelativePath="CIrrDeviceStub.cpp" RelativePath="CIrrDeviceStub.cpp"
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment