Added root motion option to ModelForm

This commit is contained in:
dexy
2019-11-21 19:05:31 +11:00
Unverified
parent d025f1b8d8
commit 7da61d36c1
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -113,6 +113,7 @@ namespace CodeWalker.Forms
MetaHash ModelHash;
Archetype ModelArchetype = null;
bool EnableRootMotion = false;
@@ -520,6 +521,11 @@ namespace CodeWalker.Forms
private void RenderSingleItem()
{
if (AnimClip != null)
{
AnimClip.EnableRootMotion = EnableRootMotion;
}
if (Ydr != null)
{
@@ -1985,5 +1991,10 @@ namespace CodeWalker.Forms
{
SelectClip(ClipComboBox.Text);
}
private void EnableRootMotionCheckBox_CheckedChanged(object sender, EventArgs e)
{
EnableRootMotion = EnableRootMotionCheckBox.Checked;
}
}
}