private static void OnCombined(IntegrationArgs args)
        {
            GameObject go = args.GameObject;

            if (go.GetComponent <MeshDeformer>() != null)
            {
                CleanupCombined(go);
            }
        }
Beispiel #2
0
        private static void OnBeforeDeform(IntegrationArgs args)
        {
            GameObject go    = args.GameObject;
            Pivot      pivot = Object.FindObjectsOfType <Pivot>().Where(p => p.Target != null && p.Target.gameObject == go).FirstOrDefault();

            if (pivot != null)
            {
                Undo.DestroyObjectImmediate(pivot.gameObject);
            }
        }
        private static void OnBeginEditPivot(IntegrationArgs args)
        {
            GameObject   go       = args.GameObject;
            MeshDeformer deformer = go.GetComponentInParent <MeshDeformer>();

            if (deformer != null && deformer.GetType() == typeof(MeshDeformer))
            {
                if (!Rollback(deformer.gameObject))
                {
                    args.Cancel = true;
                }
            }
        }
Beispiel #4
0
 private void OnWireParamsChanged(IntegrationArgs args)
 {
     m_meshFilter = null;
 }