Skip to content

Commit

Permalink
Merge pull request #340 from GothicVRProject/bugfix/vob-morph-component
Browse files Browse the repository at this point in the history
fix(VobCreator): Use VobMorph for vobs from now on.
  • Loading branch information
JaXt0r authored Apr 10, 2024
2 parents 693c393 + a8490b5 commit 2e4b2b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/GothicVR/Scripts/Creator/VobCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,8 @@ private static GameObject CreatePfx(IVirtualObject vob, GameObject parent = null
private static GameObject CreateAnimatedVob(Animate vob, GameObject parent = null)
{
var go = CreateDefaultMesh(vob, parent, true);
var headmorph = go.AddComponent<HeadMorph>();
headmorph.StartAnimation(vob.Visual.Name);
var morph = go.AddComponent<VobAnimateMorph>();
morph.StartAnimation(vob.Visual.Name);
return go;
}

Expand Down

0 comments on commit 2e4b2b4

Please sign in to comment.