Exemple #1
0
        public static DAZMorph FindMorph(
            Atom atom, GenerateDAZMorphsControlUI mui, DAZMorph m)
        {
            var nm = mui.GetMorphByUid(m.uid);

            if (nm != null)
            {
                return(nm);
            }

            nm = mui.GetMorphByDisplayName(m.displayName);
            if (nm != null)
            {
                return(nm);
            }

            Synergy.LogWarning(
                "morph '" + m.displayName + "' doesn't " +
                "exist in " + atom.uid);

            return(null);
        }