Merge branch 'master' of https://github.com/assimp/assimp
commit
5efc0207f3
|
@ -108,10 +108,10 @@ void OgreImporter::InternReadFile(const std::string &pFile, aiScene *pScene, Ass
|
||||||
MemoryStreamReader reader(f);
|
MemoryStreamReader reader(f);
|
||||||
|
|
||||||
// Import mesh
|
// Import mesh
|
||||||
boost::scoped_ptr<Mesh> mesh = OgreBinarySerializer::ImportMesh(&reader);
|
boost::scoped_ptr<Mesh> mesh(OgreBinarySerializer::ImportMesh(&reader));
|
||||||
|
|
||||||
// Import skeleton
|
// Import skeleton
|
||||||
OgreBinarySerializer::ImportSkeleton(pIOHandler, mesh);
|
OgreBinarySerializer::ImportSkeleton(pIOHandler, mesh.get());
|
||||||
|
|
||||||
// Import mesh referenced materials
|
// Import mesh referenced materials
|
||||||
ReadMaterials(pFile, pIOHandler, pScene, mesh.get());
|
ReadMaterials(pFile, pIOHandler, pScene, mesh.get());
|
||||||
|
@ -128,10 +128,10 @@ void OgreImporter::InternReadFile(const std::string &pFile, aiScene *pScene, Ass
|
||||||
boost::scoped_ptr<XmlReader> reader(irr::io::createIrrXMLReader(xmlStream.get()));
|
boost::scoped_ptr<XmlReader> reader(irr::io::createIrrXMLReader(xmlStream.get()));
|
||||||
|
|
||||||
// Import mesh
|
// Import mesh
|
||||||
boost::scoped_ptr<MeshXml> mesh = OgreXmlSerializer::ImportMesh(reader.get());
|
boost::scoped_ptr<MeshXml> mesh(OgreXmlSerializer::ImportMesh(reader.get()));
|
||||||
|
|
||||||
// Import skeleton
|
// Import skeleton
|
||||||
OgreXmlSerializer::ImportSkeleton(pIOHandler, mesh);
|
OgreXmlSerializer::ImportSkeleton(pIOHandler, mesh.get());
|
||||||
|
|
||||||
// Import mesh referenced materials
|
// Import mesh referenced materials
|
||||||
ReadMaterials(pFile, pIOHandler, pScene, mesh.get());
|
ReadMaterials(pFile, pIOHandler, pScene, mesh.get());
|
||||||
|
|
|
@ -325,7 +325,7 @@ uint32_t VertexData::VertexSize(uint16_t source) const
|
||||||
MemoryStream *VertexData::VertexBuffer(uint16_t source)
|
MemoryStream *VertexData::VertexBuffer(uint16_t source)
|
||||||
{
|
{
|
||||||
if (vertexBindings.find(source) != vertexBindings.end())
|
if (vertexBindings.find(source) != vertexBindings.end())
|
||||||
return vertexBindings[source];
|
return vertexBindings[source].get();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue