//-----------------------------------------------------------------------------------
        // Copy For Bake
        //-----------------------------------------------------------------------------------
        public void CopyFromTimelineLayer(apAnimTimelineLayer srcTimelineLayer)
        {
            _uniqueID = srcTimelineLayer._uniqueID;

            _keyframes.Clear();
            for (int iKey = 0; iKey < srcTimelineLayer._keyframes.Count; iKey++)
            {
                apAnimKeyframe srcKeyframe = srcTimelineLayer._keyframes[iKey];

                //Keyframe을 복사하자
                apAnimKeyframe newKeyframe = new apAnimKeyframe();
                newKeyframe.CopyFromKeyframe(srcKeyframe);

                _keyframes.Add(newKeyframe);
            }

            _linkModType = srcTimelineLayer._linkModType;
            _transformID = srcTimelineLayer._transformID;
            _boneID      = srcTimelineLayer._boneID;

            _guiColor        = srcTimelineLayer._guiColor;
            _guiLayerVisible = srcTimelineLayer._guiLayerVisible;
            _controlParamID  = srcTimelineLayer._controlParamID;

            _linkType = srcTimelineLayer._linkType;
        }
示例#2
0
        //-----------------------------------------------------------------------------------
        // Copy For Bake
        //-----------------------------------------------------------------------------------
        public void CopyFromTimelineLayer(apAnimTimelineLayer srcTimelineLayer, apAnimClip parentAnimClip, apAnimTimeline parentTimeline)
        {
            _uniqueID       = srcTimelineLayer._uniqueID;
            _parentTimeline = parentTimeline;
            _parentAnimClip = parentAnimClip;

            _keyframes.Clear();
            for (int iKey = 0; iKey < srcTimelineLayer._keyframes.Count; iKey++)
            {
                apAnimKeyframe srcKeyframe = srcTimelineLayer._keyframes[iKey];

                //Keyframe을 복사하자
                apAnimKeyframe newKeyframe = new apAnimKeyframe();
                newKeyframe.CopyFromKeyframe(srcKeyframe);

                _keyframes.Add(newKeyframe);
            }

            _linkModType = srcTimelineLayer._linkModType;
            _transformID = srcTimelineLayer._transformID;
            _boneID      = srcTimelineLayer._boneID;

            _guiColor        = srcTimelineLayer._guiColor;
            _guiLayerVisible = srcTimelineLayer._guiLayerVisible;
            _controlParamID  = srcTimelineLayer._controlParamID;

            _linkType = srcTimelineLayer._linkType;

            //SortAndRefreshKeyframes(false, true);//<<추가 3.31 : 커브 복사 버그 수정
            SortAndRefreshKeyframes();            //변경 19.5.20
        }