better error handling for checkandplaysounds
This commit is contained in:
parent
3f7a7bfdc3
commit
66f84a00f3
Binary file not shown.
|
@ -217,8 +217,10 @@ namespace Rimworld_Animations {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//do the same for all the child nodes
|
|
||||||
foreach (PawnRenderNode node in rootNode.children)
|
if (rootNode?.children != null)
|
||||||
|
{
|
||||||
|
foreach (PawnRenderNode node in rootNode?.children)
|
||||||
{
|
{
|
||||||
if (node?.AnimationWorker is AnimationWorker_KeyframesExtended childrenAnimWorker)
|
if (node?.AnimationWorker is AnimationWorker_KeyframesExtended childrenAnimWorker)
|
||||||
{
|
{
|
||||||
|
@ -231,6 +233,9 @@ namespace Rimworld_Animations {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//do the same for all the child nodes
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public bool AnimationMakesUseOfProp(AnimationPropDef animationProp)
|
public bool AnimationMakesUseOfProp(AnimationPropDef animationProp)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue