mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fixes several minor initialization issues that were causing problems with deletion/management of components and entities.
Also makes the ThirdPersonPlayer game object editor selectable again by removing an erroneously set field.
This commit is contained in:
parent
bbf7865a77
commit
2464b620ba
7 changed files with 46 additions and 9 deletions
|
|
@ -149,6 +149,8 @@ bool AnimationComponent::onAdd()
|
|||
void AnimationComponent::onRemove()
|
||||
{
|
||||
Parent::onRemove();
|
||||
|
||||
mOwnerRenderInst = NULL;
|
||||
}
|
||||
|
||||
void AnimationComponent::onComponentAdd()
|
||||
|
|
@ -387,7 +389,7 @@ S32 AnimationComponent::getThreadSequenceID(S32 slot)
|
|||
|
||||
void AnimationComponent::updateThread(Thread& st)
|
||||
{
|
||||
if (!mOwnerShapeInstance)
|
||||
if (!mOwnerRenderInst)
|
||||
return;
|
||||
|
||||
switch (st.state)
|
||||
|
|
@ -628,7 +630,7 @@ void AnimationComponent::startSequenceSound(Thread& thread)
|
|||
|
||||
void AnimationComponent::advanceThreads(F32 dt)
|
||||
{
|
||||
if (!mOwnerShapeInstance)
|
||||
if (!mOwnerRenderInst)
|
||||
return;
|
||||
|
||||
for (U32 i = 0; i < MaxScriptThreads; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue