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

            if (model is VFXSubgraphContext)
            {
                SyncFlowAnchors();
                model.ResyncSlots(false);
            }
        }
Exemplo n.º 2
0
        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);
                }
            }
        }