mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-17 07:16:17 +08:00
Added root motion option to ModelForm
This commit is contained in:
Generated
+1
@@ -722,6 +722,7 @@
|
|||||||
this.EnableRootMotionCheckBox.TabIndex = 37;
|
this.EnableRootMotionCheckBox.TabIndex = 37;
|
||||||
this.EnableRootMotionCheckBox.Text = "Enable root motion";
|
this.EnableRootMotionCheckBox.Text = "Enable root motion";
|
||||||
this.EnableRootMotionCheckBox.UseVisualStyleBackColor = true;
|
this.EnableRootMotionCheckBox.UseVisualStyleBackColor = true;
|
||||||
|
this.EnableRootMotionCheckBox.CheckedChanged += new System.EventHandler(this.EnableRootMotionCheckBox_CheckedChanged);
|
||||||
//
|
//
|
||||||
// label22
|
// label22
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ namespace CodeWalker.Forms
|
|||||||
|
|
||||||
MetaHash ModelHash;
|
MetaHash ModelHash;
|
||||||
Archetype ModelArchetype = null;
|
Archetype ModelArchetype = null;
|
||||||
|
bool EnableRootMotion = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -520,6 +521,11 @@ namespace CodeWalker.Forms
|
|||||||
|
|
||||||
private void RenderSingleItem()
|
private void RenderSingleItem()
|
||||||
{
|
{
|
||||||
|
if (AnimClip != null)
|
||||||
|
{
|
||||||
|
AnimClip.EnableRootMotion = EnableRootMotion;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (Ydr != null)
|
if (Ydr != null)
|
||||||
{
|
{
|
||||||
@@ -1985,5 +1991,10 @@ namespace CodeWalker.Forms
|
|||||||
{
|
{
|
||||||
SelectClip(ClipComboBox.Text);
|
SelectClip(ClipComboBox.Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void EnableRootMotionCheckBox_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
EnableRootMotion = EnableRootMotionCheckBox.Checked;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user