Merge branch 'development' into cmake/linux_fix_warn_unused
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -423,7 +423,7 @@ CTrackViewAnimNode* CTrackViewAnimNode::CreateSubNode(
|
||||
AZStd::string::format(
|
||||
"Failed to add '%s' to sequence '%s', could not find associated entity. "
|
||||
"Please try adding the entity associated with '%s'.",
|
||||
originalNameStr.constData(), director->GetName(), originalNameStr.constData()));
|
||||
originalNameStr.constData(), director->GetName().c_str(), originalNameStr.constData()));
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
@@ -472,7 +472,7 @@ CTrackViewAnimNode* CTrackViewAnimNode::CreateSubNode(
|
||||
{
|
||||
GetIEditor()->GetMovieSystem()->LogUserNotificationMsg(
|
||||
AZStd::string::format("'%s' already exists in sequence '%s', skipping...",
|
||||
originalNameStr.constData(), director2->GetName()));
|
||||
originalNameStr.constData(), director2->GetName().c_str()));
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
@@ -488,7 +488,7 @@ CTrackViewAnimNode* CTrackViewAnimNode::CreateSubNode(
|
||||
if (!newAnimNode)
|
||||
{
|
||||
GetIEditor()->GetMovieSystem()->LogUserNotificationMsg(
|
||||
AZStd::string::format("Failed to add '%s' to sequence '%s'.", nameStr.constData(), director->GetName()));
|
||||
AZStd::string::format("Failed to add '%s' to sequence '%s'.", nameStr.constData(), director->GetName().c_str()));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -1195,7 +1195,7 @@ CTrackViewAnimNodeBundle CTrackViewAnimNode::GetAnimNodesByName(const char* pNam
|
||||
{
|
||||
CTrackViewAnimNodeBundle bundle;
|
||||
|
||||
QString nodeName = GetName();
|
||||
QString nodeName = QString::fromUtf8(GetName().c_str());
|
||||
if (GetNodeType() == eTVNT_AnimNode && QString::compare(pName, nodeName, Qt::CaseInsensitive) == 0)
|
||||
{
|
||||
bundle.AppendAnimNode(this);
|
||||
@@ -1215,10 +1215,9 @@ CTrackViewAnimNodeBundle CTrackViewAnimNode::GetAnimNodesByName(const char* pNam
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
const char* CTrackViewAnimNode::GetParamName(const CAnimParamType& paramType) const
|
||||
AZStd::string CTrackViewAnimNode::GetParamName(const CAnimParamType& paramType) const
|
||||
{
|
||||
const char* pName = m_animNode->GetParamName(paramType);
|
||||
return pName ? pName : "";
|
||||
return m_animNode->GetParamName(paramType);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
@@ -1274,7 +1273,7 @@ CTrackViewAnimNodeBundle CTrackViewAnimNode::AddSelectedEntities(const AZStd::ve
|
||||
if (existingNode->GetDirector() == GetDirector())
|
||||
{
|
||||
GetIEditor()->GetMovieSystem()->LogUserNotificationMsg(AZStd::string::format(
|
||||
"'%s' was already added to '%s', skipping...", entity->GetName().c_str(), GetDirector()->GetName()));
|
||||
"'%s' was already added to '%s', skipping...", entity->GetName().c_str(), GetDirector()->GetName().c_str()));
|
||||
|
||||
continue;
|
||||
}
|
||||
@@ -1377,7 +1376,7 @@ void CTrackViewAnimNode::UpdateDynamicParams()
|
||||
void CTrackViewAnimNode::CopyKeysToClipboard(XmlNodeRef& xmlNode, const bool bOnlySelectedKeys, const bool bOnlyFromSelectedTracks)
|
||||
{
|
||||
XmlNodeRef childNode = xmlNode->createNode("Node");
|
||||
childNode->setAttr("name", GetName());
|
||||
childNode->setAttr("name", GetName().c_str());
|
||||
childNode->setAttr("type", static_cast<int>(GetType()));
|
||||
|
||||
for (auto iter = m_childNodes.begin(); iter != m_childNodes.end(); ++iter)
|
||||
@@ -1683,7 +1682,7 @@ bool CTrackViewAnimNode::IsValidReparentingTo(CTrackViewAnimNode* pNewParent)
|
||||
}
|
||||
|
||||
// Check if the new parent already contains a node with this name
|
||||
CTrackViewAnimNodeBundle foundNodes = pNewParent->GetAnimNodesByName(GetName());
|
||||
CTrackViewAnimNodeBundle foundNodes = pNewParent->GetAnimNodesByName(GetName().c_str());
|
||||
if (foundNodes.GetCount() > 1 || (foundNodes.GetCount() == 1 && foundNodes.GetNode(0) != this))
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user