Added ability to manually select animations in ModelForm

This commit is contained in:
dexy
2019-11-21 19:01:43 +11:00
Unverified
parent 53305c3f12
commit d025f1b8d8
5 changed files with 241 additions and 64 deletions
+6 -6
View File
@@ -2255,14 +2255,14 @@ namespace CodeWalker.Rendering
public bool RenderFragment(Archetype arch, YmapEntityDef ent, FragType f, uint txdhash = 0)
public bool RenderFragment(Archetype arch, YmapEntityDef ent, FragType f, uint txdhash = 0, ClipMapEntry animClip = null)
{
RenderDrawable(f.Drawable, arch, ent, txdhash);
RenderDrawable(f.Drawable, arch, ent, txdhash, null, null, animClip);
if (f.Drawable2 != null) //cloth
{
RenderDrawable(f.Drawable2, arch, ent, txdhash);
RenderDrawable(f.Drawable2, arch, ent, txdhash, null, null, animClip);
}
//vehicle wheels...
@@ -2308,7 +2308,7 @@ namespace CodeWalker.Rendering
break;
default:
RenderDrawable(pch.Drawable1, arch, ent, txdhash);
RenderDrawable(pch.Drawable1, arch, ent, txdhash, null, null, animClip);
break;
}
@@ -2318,7 +2318,7 @@ namespace CodeWalker.Rendering
{ }
if ((pch.Drawable2 != null) && (pch.Drawable2.AllModels.Length != 0))
{
RenderDrawable(pch.Drawable2, arch, ent, txdhash);
RenderDrawable(pch.Drawable2, arch, ent, txdhash, null, null, animClip);
}
else
{ }
@@ -2385,7 +2385,7 @@ namespace CodeWalker.Rendering
//dwbl.VertexDecls = dwblcopy.VertexDecls;
}
RenderDrawable(dwbl, arch, ent, txdhash);
RenderDrawable(dwbl, arch, ent, txdhash /*, null, null, animClip*/);
}
else