DragPointBody.cs 609 B

1234567891011121314151617181920212223242526272829303132
  1. namespace MeidoPhotoStudio.Plugin;
  2. public class DragPointBody : DragPointGeneral
  3. {
  4. public bool IsCube;
  5. private bool isIK;
  6. public bool IsIK
  7. {
  8. get => isIK;
  9. set
  10. {
  11. if (isIK == value)
  12. return;
  13. isIK = value;
  14. ApplyDragType();
  15. }
  16. }
  17. protected override void ApplyDragType()
  18. {
  19. var enabled = !IsIK && (Transforming || Selecting);
  20. var select = IsIK && Selecting;
  21. ApplyProperties(enabled || select, IsCube && enabled, false);
  22. if (IsCube)
  23. ApplyColours();
  24. }
  25. }