static void DrawGizmo(MagicaVirtualDeformer scr, GizmoType gizmoType) { bool selected = (gizmoType & GizmoType.Selected) != 0 || (ClothMonitorMenu.Monitor != null && ClothMonitorMenu.Monitor.UI.AlwaysDeformerShow); if (PointSelector.EditEnable) { return; } if (ClothMonitorMenu.Monitor == null) { return; } if (ClothMonitorMenu.Monitor.UI.DrawDeformer == false) { return; } if (selected == false) { return; } // データ整合性チェック if (scr.VerifyData() != Define.Error.None) { return; } // デフォーマーギズモ DeformerGizmoDrawer.DrawDeformerGizmo(scr, scr); }
//[DrawGizmo(GizmoType.Selected | GizmoType.Active)] static void DrawGizmo(MagicaBoneSpring scr, GizmoType gizmoType) { bool selected = (gizmoType & GizmoType.Selected) != 0 || (ClothMonitorMenu.Monitor != null && ClothMonitorMenu.Monitor.UI.AlwaysClothShow); if (scr.VerifyData() != Define.Error.None) { //DrawRootLine(scr); return; } if (PointSelector.EditEnable) { //DrawRootLine(scr); return; } if (ClothMonitorMenu.Monitor == null) { return; } if (selected == false) { return; } // デフォーマーギズモ DeformerGizmoDrawer.DrawDeformerGizmo(scr, scr, 0.015f); if (ClothMonitorMenu.Monitor.UI.DrawCloth) { // クロスギズモ ClothGizmoDrawer.DrawClothGizmo( scr, scr.ClothData, scr.Params, scr.Setup, scr, scr ); } //else //{ // DrawRootLine(scr); //} }