Merge branch 'master' into ms-maxvollmer/crash_fixes_08_2021
commit
a850f312ac
|
@ -468,7 +468,7 @@ void ObjFileImporter::createVertexArray(const ObjFile::Model *pModel,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy all vertex colors
|
// Copy all vertex colors
|
||||||
if (!pModel->m_VertexColors.empty()) {
|
if (vertex < pModel->m_VertexColors.size()) {
|
||||||
const aiVector3D &color = pModel->m_VertexColors[vertex];
|
const aiVector3D &color = pModel->m_VertexColors[vertex];
|
||||||
pMesh->mColors[0][newIndex] = aiColor4D(color.x, color.y, color.z, 1.0);
|
pMesh->mColors[0][newIndex] = aiColor4D(color.x, color.y, color.z, 1.0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,8 +99,8 @@ public:
|
||||||
virtual ~Logger();
|
virtual ~Logger();
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
/** @brief Writes a info message
|
/** @brief Writes a debug message
|
||||||
* @param message Info message*/
|
* @param message Debug message*/
|
||||||
void debug(const char* message);
|
void debug(const char* message);
|
||||||
|
|
||||||
template<typename... T>
|
template<typename... T>
|
||||||
|
@ -109,7 +109,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
/** @brief Writes a debug message
|
/** @brief Writes a debug message
|
||||||
* @param message Debug message*/
|
* @param message Debug message*/
|
||||||
void verboseDebug(const char* message);
|
void verboseDebug(const char* message);
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ public:
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
/** @brief Writes an error message
|
/** @brief Writes an error message
|
||||||
* @param message Info message*/
|
* @param message Error message*/
|
||||||
void error(const char* message);
|
void error(const char* message);
|
||||||
|
|
||||||
template<typename... T>
|
template<typename... T>
|
||||||
|
|
Loading…
Reference in New Issue