Merge pull request #969 from unelsson/daeremoveprotcheck
Remove "file" protocol check
This commit is contained in:
commit
b8982224c3
@ -897,8 +897,6 @@ std::string daeReader::processImagePath(const domImage* pDomImage) const
|
|||||||
if (pDomImage->getInit_from())
|
if (pDomImage->getInit_from())
|
||||||
{
|
{
|
||||||
pDomImage->getInit_from()->getValue().validate();
|
pDomImage->getInit_from()->getValue().validate();
|
||||||
if (strcmp(pDomImage->getInit_from()->getValue().getProtocol(), "file") == 0)
|
|
||||||
{
|
|
||||||
std::string path = pDomImage->getInit_from()->getValue().pathDir() +
|
std::string path = pDomImage->getInit_from()->getValue().pathDir() +
|
||||||
pDomImage->getInit_from()->getValue().pathFile();
|
pDomImage->getInit_from()->getValue().pathFile();
|
||||||
path = ReaderWriterDAE::ConvertColladaCompatibleURIToFilePath(path);
|
path = ReaderWriterDAE::ConvertColladaCompatibleURIToFilePath(path);
|
||||||
@ -915,11 +913,6 @@ std::string daeReader::processImagePath(const domImage* pDomImage) const
|
|||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
OSG_WARN << "Only images with a \"file\" scheme URI are supported in this version." << std::endl;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
OSG_WARN << "Embedded image data is not supported in this version." << std::endl;
|
OSG_WARN << "Embedded image data is not supported in this version." << std::endl;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user