|
|
@ -20,9 +20,17 @@ public abstract class ModuleBase : StackExpanderViewModel, IComfyStep, IInputIma |
|
|
|
/// <inheritdoc /> |
|
|
|
/// <inheritdoc /> |
|
|
|
public void ApplyStep(ModuleApplyStepEventArgs e) |
|
|
|
public void ApplyStep(ModuleApplyStepEventArgs e) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ( |
|
|
|
if (e.IsEnabledOverrides.TryGetValue(GetType(), out var isEnabledOverride)) |
|
|
|
(e.IsEnabledOverrides.TryGetValue(GetType(), out var isEnabledOverride) && !isEnabledOverride) || !IsEnabled |
|
|
|
{ |
|
|
|
) |
|
|
|
if (isEnabledOverride) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
OnApplyStep(e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!IsEnabled) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|