summaryrefslogtreecommitdiffstats
path: root/src/Runtime/Source/engine/Qt3DSRenderRuntimeBindingImplTranslation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Runtime/Source/engine/Qt3DSRenderRuntimeBindingImplTranslation.cpp')
-rw-r--r--src/Runtime/Source/engine/Qt3DSRenderRuntimeBindingImplTranslation.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Runtime/Source/engine/Qt3DSRenderRuntimeBindingImplTranslation.cpp b/src/Runtime/Source/engine/Qt3DSRenderRuntimeBindingImplTranslation.cpp
index 8b54e5d5..40b3ab02 100644
--- a/src/Runtime/Source/engine/Qt3DSRenderRuntimeBindingImplTranslation.cpp
+++ b/src/Runtime/Source/engine/Qt3DSRenderRuntimeBindingImplTranslation.cpp
@@ -1241,9 +1241,10 @@ struct SDynamicObjectTranslatorContext : public STranslatorContext
const char *inExtension, Q3DStudio::EAttributeType inType,
CRenderString &ioStringBuilder, QT3DSU32 inOffset, QT3DSU32 dataOffset)
{
- ioStringBuilder.assign(thePropDef.m_Name.c_str());
+ ioStringBuilder.fromUtf8(thePropDef.m_Name.c_str());
ioStringBuilder.append(inExtension);
- Q3DStudio::INT32 theHash = Q3DStudio::CHash::HashAttribute(ioStringBuilder.c_str());
+ Q3DStudio::INT32 theHash = Q3DStudio::CHash::HashAttribute(
+ ioStringBuilder.toUtf8().constData());
m_PropertyHashes.insert(
eastl::make_pair(theHash, SEffectPropertyEntry(inType, inOffset, dataOffset)));
}