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()); }
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()); }