Fixed: Use c_str() to display a string

--HG--
branch : develop
This commit is contained in:
kervala 2018-01-02 17:43:09 +01:00
parent 3d3046ff97
commit 51e4a5e7c1

View file

@ -56,7 +56,7 @@ void CRadialVertices::init (INode *node, Mesh *mesh, TimeValue time, Interface &
string pivotName = CExportNel::getScriptAppData (_NodePtr, NEL3D_APPDATA_RADIAL_NORMAL_SM+app-NEL3D_RADIAL_FIRST_SM, "");
// Active ?
if (pivotName != "")
if (!pivotName.empty())
{
// Add the mask
_SmoothingGroupMask |= (1<<app);
@ -79,7 +79,7 @@ void CRadialVertices::init (INode *node, Mesh *mesh, TimeValue time, Interface &
{
// Output error message
char msg[512];
smprintf (msg, 512, "Can't find pivot node named %s", pivotName);
smprintf (msg, 512, "Can't find pivot node named '%s'", pivotName.c_str());
nelExport.outputErrorMessage (msg);
}
}