| 518 | } |
| 519 | |
| 520 | void TSShapeInstance::destroyThread(TSThread * thread) |
| 521 | { |
| 522 | if (!thread) |
| 523 | return; |
| 524 | |
| 525 | clearTransition(thread); |
| 526 | |
| 527 | S32 i; |
| 528 | for (i=0; i<mThreadList.size(); i++) |
| 529 | if (thread==mThreadList[i]) |
| 530 | break; |
| 531 | |
| 532 | AssertFatal(i<mThreadList.size(),"TSShapeInstance::destroyThread was requested to destroy a thread that this instance doesn't own!"); |
| 533 | |
| 534 | delete mThreadList[i]; |
| 535 | mThreadList.erase(i); |
| 536 | setDirty(AllDirtyMask); |
| 537 | checkScaleCurrentlyAnimated(); |
| 538 | } |
| 539 | |
| 540 | U32 TSShapeInstance::threadCount() |
| 541 | { |
no test coverage detected