static void DrawGizmo(MagicaRenderDeformer 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);
        }
Esempio n. 2
0
        //=========================================================================================
        /// <summary>
        /// データ検証
        /// </summary>
        private void VerifyData()
        {
            MagicaRenderDeformer scr = target as MagicaRenderDeformer;

            if (scr.VerifyData() != Define.Error.None)
            {
                // 検証エラー
                serializedObject.ApplyModifiedProperties();
            }
        }