Minor Windows fixes.
This commit is contained in:
parent
542550192c
commit
3bfe56b71f
|
@ -594,7 +594,7 @@ size_t RawModel::CalculateNormals(bool onlyBroken)
|
|||
std::set<int> brokenVerts;
|
||||
for (int vertIx = 0; vertIx < vertices.size(); vertIx ++) {
|
||||
RawVertex &vertex = vertices[vertIx];
|
||||
averagePos += (vertex.position / vertices.size());
|
||||
averagePos += (vertex.position / (float)vertices.size());
|
||||
if (onlyBroken && (vertex.normal.LengthSquared() >= FLT_MIN)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ namespace StringUtils {
|
|||
inline const std::string GetFileSuffixString(const std::string &path)
|
||||
{
|
||||
const std::string fileName = GetFileNameString(path);
|
||||
unsigned long pos = fileName.rfind('.');
|
||||
size_t pos = fileName.rfind('.');
|
||||
if (pos == std::string::npos) {
|
||||
return "";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue