示例#1
0
        public void DrawPreviewLinkFromBone(IBone bone)
        {
            if (Event.current == null || Event.current.type != EventType.Repaint)
            {
                return;
            }

            var mousePosition = GetMouseWorldPosition();

            BoneDrawingUtility.DrawParentLink(mousePosition, bone.position, Styles.previewColor, GetScale());
        }
示例#2
0
        public void DrawLinkToParent(IBone bone, bool selected)
        {
            if (Event.current == null || Event.current.type != EventType.Repaint)
            {
                return;
            }

            var pointingTo = bone.parent.position;

            BoneDrawingUtility.DrawParentLink(bone.position, pointingTo, selected ? Styles.selectedParentLinkColor : color, GetScale());
        }