pose mode hotfix

This commit is contained in:
Katboi01
2023-12-18 18:52:36 +01:00
parent 9405816231
commit df8b594c19
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -107,6 +107,8 @@ public class PoseManager : MonoBehaviour
public void EnablePoseMode()
{
if (PoseModeOn) return;
var ui = UmaViewerUI.Instance;
var builder = UmaViewerBuilder.Instance;
ui.SetEyeTrackingEnable(false);
@@ -123,6 +125,8 @@ public class PoseManager : MonoBehaviour
public void DisablePoseMode()
{
if (!PoseModeOn) return;
UIPoseContainer.CreateBackupFromScene();
var ui = UmaViewerUI.Instance;
+3
View File
@@ -158,7 +158,10 @@ public class UIPoseContainer : MonoBehaviour
if(poseData.Name != PoseData.Name)
{
//Create new container with new data
UIPoseContainer.Create(poseData);
//Reset back to old data
Init(PoseData);
}
else
{