Fixed: Use c_str() to display a string
--HG-- branch : develop
This commit is contained in:
parent
3d3046ff97
commit
51e4a5e7c1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue