mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 23:53:51 +00:00
Bugfixes and improvements for the animation component and related asset behavior.
Adds in ability to establish a shape animation asset as being cyclic or blended. Adds functionality for blended animations to integrated into shapeAssets.
This commit is contained in:
parent
cfbdf63cd7
commit
14ae287c0c
6 changed files with 130 additions and 15 deletions
|
|
@ -222,7 +222,7 @@ U32 AnimationComponent::packUpdate(NetConnection *con, U32 mask, BitStream *stre
|
|||
{
|
||||
U32 retMask = Parent::packUpdate(con, mask, stream);
|
||||
|
||||
/*for (int i = 0; i < MaxScriptThreads; i++)
|
||||
for (int i = 0; i < MaxScriptThreads; i++)
|
||||
{
|
||||
Thread& st = mAnimationThreads[i];
|
||||
if (stream->writeFlag((st.sequence != -1 || st.state == Thread::Destroy) && (mask & (ThreadMaskN << i))))
|
||||
|
|
@ -234,7 +234,7 @@ U32 AnimationComponent::packUpdate(NetConnection *con, U32 mask, BitStream *stre
|
|||
stream->writeFlag(st.atEnd);
|
||||
stream->writeFlag(st.transition);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
return retMask;
|
||||
}
|
||||
|
|
@ -243,7 +243,7 @@ void AnimationComponent::unpackUpdate(NetConnection *con, BitStream *stream)
|
|||
{
|
||||
Parent::unpackUpdate(con, stream);
|
||||
|
||||
/*for (S32 i = 0; i < MaxScriptThreads; i++)
|
||||
for (S32 i = 0; i < MaxScriptThreads; i++)
|
||||
{
|
||||
if (stream->readFlag())
|
||||
{
|
||||
|
|
@ -260,7 +260,7 @@ void AnimationComponent::unpackUpdate(NetConnection *con, BitStream *stream)
|
|||
else
|
||||
updateThread(st);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
void AnimationComponent::processTick()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue