pose mode hotfix
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user