Gems/Maestro

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-02 11:44:34 -07:00
parent b9cfce8165
commit db7536acda
25 changed files with 68 additions and 85 deletions
@@ -98,10 +98,10 @@ void CAnimSequence::SetName(const char* name)
return; // should never happen, null pointer guard
}
string originalName = GetName();
AZStd::string originalName = GetName();
m_name = name;
m_pMovieSystem->OnSequenceRenamed(originalName, m_name.c_str());
m_pMovieSystem->OnSequenceRenamed(originalName.c_str(), m_name.c_str());
// the sequence named LIGHT_ANIMATION_SET_NAME is a singleton sequence to hold all light animations.
if (m_name == LIGHT_ANIMATION_SET_NAME)
@@ -744,9 +744,6 @@ void CAnimSequence::Deactivate()
static_cast<CAnimNode*>(animNode)->OnReset();
}
// Remove a possibly cached game hint associated with this anim sequence.
stack_string sTemp("anim_sequence_");
sTemp += m_name.c_str();
// Audio: Release precached sound
m_bActive = false;
@@ -776,16 +773,6 @@ void CAnimSequence::PrecacheStatic(const float startTime)
return;
}
// Try to cache this sequence's game hint if one exists.
stack_string sTemp("anim_sequence_");
sTemp += m_name.c_str();
//if (gEnv->pAudioSystem)
{
// Make sure to use the non-serializable game hint type as trackview sequences get properly reactivated after load
// Audio: Precache sound
}
gEnv->pLog->Log("=== Precaching render data for cutscene: %s ===", GetName());
m_precached = true;