1
0
mirror of synced 2025-01-19 01:14:08 +01:00

Scale bones according to preview scale properly

This commit is contained in:
KillzXGaming 2019-10-19 17:49:20 -04:00
parent 27a7469201
commit 347fd412ce
3 changed files with 3 additions and 2 deletions

View File

@ -779,7 +779,6 @@ namespace FirstPlugin
BFRESRender.ModelTransform = MarioCostumeEditor.SetTransform(FileName);
BFRESRender.ResFileNode = this;
if (IsWiiU)
{
LoadFile(new Syroot.NintenTools.Bfres.ResFile(stream));

View File

@ -536,6 +536,8 @@ namespace LayoutBXLYT
{
if (LayoutAnimEditor != null)
LayoutAnimEditor.OnAnimationPlaying();
if (AnimationMode && LayoutPaneEditor != null)
LayoutPaneEditor.ReloadEditor();
}
private void stComboBox1_MouseDoubleClick(object sender, MouseEventArgs e)

View File

@ -22,5 +22,5 @@ void main()
else
position = bone * rotation * vec4((point.xyz - vec3(0, 1, 0)) * scale, 1);
}
gl_Position = mtxCam * ModelMatrix * mtxMdl * vec4(position.xyz, 1);
gl_Position = mtxCam * mtxMdl * ModelMatrix * vec4(position.xyz, 1);
}