- Timestamp:
- 05/28/18 21:06:09 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/simulation2/components/CCmpVisualActor.cpp
r21375 r21828 69 69 std::wstring m_BaseActorName, m_ActorName; 70 70 bool m_IsFoundationActor; 71 72 // Not initialized in non-visual mode 71 73 CUnit* m_Unit; 72 74 … … 451 453 SetVariant("animation", m_AnimName); 452 454 455 CmpPtr<ICmpSound> cmpSound(GetEntityHandle()); 456 if (cmpSound) 457 m_SoundGroup = cmpSound->GetSoundGroup(wstring_from_utf8(m_AnimName)); 458 453 459 if (!m_Unit || !m_Unit->GetAnimation() || !m_Unit->GetID()) 454 460 return; 455 456 CmpPtr<ICmpSound> cmpSound(GetSimContext(), m_Unit->GetID());457 if (cmpSound)458 m_SoundGroup = cmpSound->GetSoundGroup(wstring_from_utf8(m_AnimName));459 461 460 462 m_Unit->GetAnimation()->SetAnimationState(m_AnimName, m_AnimOnce, m_AnimSpeed.ToFloat(), m_AnimDesync.ToFloat(), m_SoundGroup.c_str());
Note:
See TracChangeset
for help on using the changeset viewer.
