public VFXContextController(VFXContext model, VFXViewController viewController) : base(model, viewController)
        {
            UnregisterAnchors();
            SyncControllers();

            if (model is VFXSubgraphContext)
            {
                SyncFlowAnchors();
                model.ResyncSlots(false);
            }
        }
        public VFXContextController(VFXContext model, VFXViewController viewController) : base(model, viewController)
        {
            UnregisterAnchors();
            SyncControllers();

            if (model is VFXSubgraphContext)
            {
                // Prevent breaking the editor opening.
                try
                {
                    SyncFlowAnchors();
                    model.ResyncSlots(true);
                }
                catch (Exception e)
                {
                    Debug.LogException(e);
                }
            }
        }