Utility/Formats: Fix MD5 loading
Former-commit-id: 05a4ee3745a6f5444a19c15f713fdd21d51a7804
This commit is contained in:
parent
f44abfb87c
commit
6c9a48d80e
|
|
@ -4240,7 +4240,7 @@ namespace Nz
|
|||
utf8::unchecked::iterator<const char*> it(m_sharedString->string.get());
|
||||
do
|
||||
{
|
||||
if ((Unicode::GetCategory(*it) & Unicode::Category_Separator) == 0)
|
||||
if (*it != '\t' && (Unicode::GetCategory(*it) & Unicode::Category_Separator) == 0)
|
||||
break;
|
||||
}
|
||||
while (*++it);
|
||||
|
|
@ -4255,7 +4255,7 @@ namespace Nz
|
|||
utf8::unchecked::iterator<const char*> it(&m_sharedString->string[m_sharedString->size]);
|
||||
while ((it--).base() != m_sharedString->string.get())
|
||||
{
|
||||
if ((Unicode::GetCategory(*it) & Unicode::Category_Separator) == 0)
|
||||
if (*it != '\t' && (Unicode::GetCategory(*it) & Unicode::Category_Separator) == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -4271,7 +4271,8 @@ namespace Nz
|
|||
{
|
||||
for (; startPos < m_sharedString->size; ++startPos)
|
||||
{
|
||||
if ((Unicode::GetCategory(m_sharedString->string[startPos]) & Unicode::Category_Separator) == 0)
|
||||
char c = m_sharedString->string[startPos];
|
||||
if (c != '\t' && (Unicode::GetCategory(c) & Unicode::Category_Separator) == 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -4281,7 +4282,8 @@ namespace Nz
|
|||
{
|
||||
for (; endPos > 0; --endPos)
|
||||
{
|
||||
if ((Unicode::GetCategory(m_sharedString->string[endPos]) & Unicode::Category_Separator) == 0)
|
||||
char c = m_sharedString->string[endPos];
|
||||
if (c != '\t' && (Unicode::GetCategory(c) & Unicode::Category_Separator) == 0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ namespace Nz
|
|||
|
||||
// Pour que le squelette soit correctement aligné, il faut appliquer un quaternion "de correction" aux joints à la base du squelette
|
||||
Quaternionf rotationQuat = Quaternionf::RotationBetween(Vector3f::UnitX(), Vector3f::Forward()) *
|
||||
Quaternionf::RotationBetween(Vector3f::UnitZ(), Vector3f::Up());
|
||||
Quaternionf::RotationBetween(Vector3f::UnitZ(), Vector3f::Up());
|
||||
|
||||
String baseDir = stream.GetDirectory();
|
||||
|
||||
|
|
|
|||
|
|
@ -194,6 +194,7 @@ namespace Nz
|
|||
m_currentLine = m_stream.ReadLine();
|
||||
m_currentLine = m_currentLine.SubStringTo("//"); // On ignore les commentaires
|
||||
m_currentLine.Simplify(); // Pour un traitement plus simple
|
||||
m_currentLine.Trim();
|
||||
}
|
||||
while (m_currentLine.IsEmpty());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue