コード例 #1
0
    private void OnUndoRedo()
    {
        // Ensure selection doesn't create error
        ClearContourSelection();
        ClearPointSelection();
        // Update target
        SetTarget();
        SetTargetDirty();
        // Update ContourBuilder
        ContourBlocBuilder targetBuilder = targetBloc.GetComponent <ContourBlocBuilder>();

        if (targetBuilder != null)
        {
            targetBuilder.RebuildAll();
        }
    }