rimworld-animations/Patch_FacialAnimation/1.5/Patches/AnimationPatch_HideHeadWhenAnimating.xml

32 lines
No EOL
917 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<!--
hide node when animating
no longer works with new version
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationConditional">
<xpath>/Defs/PawnRenderTreeDef[defName="Humanlike"]/root/children/li[debugLabel="Head"]/subworkerClasses</xpath>
<success>Always</success>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/PawnRenderTreeDef[defName="Humanlike"]/root/children/li[debugLabel="Head"]</xpath>
<value>
<subworkerClasses />
</value>
</nomatch>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/PawnRenderTreeDef[defName="Humanlike"]/root/children/li[debugLabel="Head"]/subworkerClasses</xpath>
<value>
<li>Rimworld_Animations.PawnRenderSubWorker_HideWhenAnimating</li>
</value>
</li>
</operations>
</Operation>
-->
</Patch>