Fix again for Max 2020
This commit is contained in:
parent
449f0061f8
commit
59cf1cf562
4 changed files with 5 additions and 5 deletions
|
@ -38,7 +38,7 @@ static TSTR MaxTStrFromUtf8(const std::string &src)
|
||||||
uc.fromUtf8(src);
|
uc.fromUtf8(src);
|
||||||
dst = (const mwchar_t *)uc.c_str();
|
dst = (const mwchar_t *)uc.c_str();
|
||||||
#else
|
#else
|
||||||
dst.FromUTF8(source);
|
dst.FromUTF8(src.c_str());
|
||||||
#endif
|
#endif
|
||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ static std::string MaxTStrToUtf8(const TSTR& src)
|
||||||
return uc.toUtf8();
|
return uc.toUtf8();
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
return src.ToUTF8();
|
return src.ToUTF8().data();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2493,7 +2493,7 @@ INT_PTR CALLBACK LodDialogCallback (
|
||||||
|
|
||||||
// Window text
|
// Window text
|
||||||
TSTR winName = (*(currentParam->ListNode->begin()))->GetName();
|
TSTR winName = (*(currentParam->ListNode->begin()))->GetName();
|
||||||
winName = TSTR("Node properties (") + winName + ((currentParam->ListNode->size() > 1) ? _M(" ...)") : _M(")"));
|
winName = TSTR(_M("Node properties (")) + winName + ((currentParam->ListNode->size() > 1) ? _M(" ...)") : _M(")"));
|
||||||
SetWindowText(hwndDlg, winName.data());
|
SetWindowText(hwndDlg, winName.data());
|
||||||
|
|
||||||
// Move dialog
|
// Move dialog
|
||||||
|
|
|
@ -2530,7 +2530,7 @@ bool CExportNel::calculateLM( CMesh::CMeshBuild *pZeMeshBuild, CMeshBase::CMeshB
|
||||||
// Add lightmap information in the lightmap log
|
// Add lightmap information in the lightmap log
|
||||||
COFile outputLog;
|
COFile outputLog;
|
||||||
if (outputLightmapLog)
|
if (outputLightmapLog)
|
||||||
createLightmapLog(outputLog, gOptions.sExportLighting.c_str(), ucstring(projectName).toUtf8().c_str(), CStr(ZeNode.GetName()).data());
|
createLightmapLog(outputLog, gOptions.sExportLighting.c_str(), ucstring(projectName).toUtf8().c_str(), MaxTStrToUtf8(ZeNode.GetName()).c_str());
|
||||||
|
|
||||||
// Update UV coords to Texture space
|
// Update UV coords to Texture space
|
||||||
PutFaceUV1InTextureCoord( LightMap.w, LightMap.h, AllFaces.begin(), AllFaces.size() );
|
PutFaceUV1InTextureCoord( LightMap.w, LightMap.h, AllFaces.begin(), AllFaces.size() );
|
||||||
|
|
|
@ -206,7 +206,7 @@ class RPO : public PatchObject
|
||||||
? true : PatchObject::IsSubClassOf(classID);
|
? true : PatchObject::IsSubClassOf(classID);
|
||||||
}
|
}
|
||||||
SClass_ID SuperClassID() { return GEOMOBJECT_CLASS_ID; }
|
SClass_ID SuperClassID() { return GEOMOBJECT_CLASS_ID; }
|
||||||
void GetClassName(TSTR& s) { s = "Rykol Patch Object";}
|
void GetClassName(TSTR& s) { s = _T("Rykol Patch Object");}
|
||||||
|
|
||||||
RefTargetHandle Clone ( RemapDir &remap );
|
RefTargetHandle Clone ( RemapDir &remap );
|
||||||
RefResult NotifyRefChanged (NOTIFY_REF_PARAMS);
|
RefResult NotifyRefChanged (NOTIFY_REF_PARAMS);
|
||||||
|
|
Loading…
Reference in a new issue