Exemplo n.º 1
0
 public override bool ApplyRevert(bool apply)
 {
     if (apply)
     {
         m_Analytics.FlushEvent();
         ApplyChanges(skinningCache, spriteEditor.GetDataProvider <ISpriteEditorDataProvider>());
         DoApplyAnalytics();
     }
     else
     {
         skinningCache.Revert();
     }
     return(true);
 }
Exemplo n.º 2
0
        public override bool ApplyRevert(bool apply)
        {
            if (apply)
            {
                m_Analytics.FlushEvent();
                skinningCache.applyingChanges = true;
                skinningCache.RestoreBindPose();
                ApplyBone();
                ApplyMesh();
                ApplyCharacter();
                skinningCache.applyingChanges = false;
                DoApplyAnalytics();
            }

            return(true);
        }