From Aurelien Albert, "I get a compile error on Windows VS2008 wih new DAE plugin, here is a fix :
_document = _dae->openFromMemory(fileURI, buffer.data());
"data" method is unknow for std::vector with VS2008
I've replaced it with :
_document = _dae->openFromMemory(fileURI, &buffer[0]);
"
This commit is contained in:
@@ -295,7 +295,7 @@ bool daeReader::convert( std::istream& fin )
|
||||
std::vector<char> buffer(length);
|
||||
fin.read(&buffer[0], length);
|
||||
|
||||
_document = _dae->openFromMemory(fileURI, buffer.data());
|
||||
_document = _dae->openFromMemory(fileURI, &buffer[0]);
|
||||
|
||||
return processDocument (fileURI);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user