Ignore:
Timestamp:
Jun 2, 2010, 3:09:12 PM (12 years ago)
Author:
kopal
Message:
  • renamed "ConntectorView" to "ConnectorView"
  • bug fix - newConnectionModel now puts the new ConnectionModel into the internal list
  • PluginModels are now executable if
    • all Mandatory Inputs are set + all Outputs are "free"
    • there are no Mandatory Inputs but at least one input is set + all Outputs are "free"
    • there are no Inputs + all Outputs are "free"
  • some small fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/Model/PluginModel.cs

    r1562 r1570  
    147147            get
    148148            {
    149                 return this.Plugin.Presentation;
     149                if(this.Plugin.Presentation != null){
     150                    return this.Plugin.Presentation;
     151                }else{
     152                    return this.Plugin.QuickWatchPresentation;
     153                }
    150154            }
    151155        }
     
    182186
    183187                mutex.WaitOne();
     188               
     189                bool AtLeastOneInputSet = false;
    184190                //First test if every mandatory Connector has Data
    185191                foreach (ConnectorModel connectorModel in this.InputConnectors)
     
    189195                        mutex.ReleaseMutex();
    190196                        return;
     197                    }
     198                    else if (connectorModel.HasData)
     199                    {
     200                        AtLeastOneInputSet = true;
    191201                    }
    192202
     
    206216                }
    207217
    208                 ExecutionState = PluginModelState.Executable;
     218                if (AtLeastOneInputSet || this.InputConnectors.Count == 0)
     219                {
     220                    ExecutionState = PluginModelState.Executable;
     221                }
    209222                mutex.ReleaseMutex();
    210223            }
Note: See TracChangeset for help on using the changeset viewer.