Fixed bug in FBX import toolchain that caused incorrect transparency values to be set on materials.

Optimization for packing of index data into VBO's in progress.
This commit is contained in:
2013-05-06 19:33:51 -07:00
parent 9e605863ea
commit e42eeb5392
6 changed files with 50 additions and 21 deletions

View File

@@ -79,7 +79,7 @@ bool KRDataBlock::load(const std::string &path)
m_fdPackFile = open(path.c_str(), O_RDONLY);
if(m_fdPackFile >= 0) {
if(fstat(m_fdPackFile, &statbuf) >= 0) {
if ((m_data = mmap (0, statbuf.st_size, PROT_READ, MAP_SHARED, m_fdPackFile, 0)) == (caddr_t) -1) {
if ((m_data = mmap(0, statbuf.st_size, PROT_READ, MAP_SHARED, m_fdPackFile, 0)) == (caddr_t) -1) {
} else {
m_data_size = statbuf.st_size;
success = true;