Skip to content

Commit

Permalink
update: make switch parameter enable ok
Browse files Browse the repository at this point in the history
  • Loading branch information
kSpacer201 committed Nov 7, 2020
1 parent e76df83 commit edb077b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Plugins/UEPyICU/Source/UEPyICU/Private/UEPyICUBPLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void UUEPyICUBPLibrary::SetSwitchParameter(
{
if (parameter.bOverride && parameter.ParameterInfo.Name == ParameterName)
{
parameter.bOverride = SwitchEnabled;
parameter.Value = SwitchValue;
isExisting = true;
break;
Expand All @@ -78,7 +79,7 @@ void UUEPyICUBPLibrary::SetSwitchParameter(
SwitchParameter.ParameterInfo.Name = ParameterName;
SwitchParameter.Value = SwitchValue;

SwitchParameter.bOverride = true;
SwitchParameter.bOverride = SwitchEnabled;
StaticParameterSet.StaticSwitchParameters.Add(SwitchParameter);
}

Expand Down
4 changes: 2 additions & 2 deletions Saved/Config/Windows/EditorPerProjectUserSettings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ HierarchicalLODOutliner.TimeStamp=2020.09.13-02.54.53
HierarchicalLODOutliner.LastCompileMethod=Unknown
GamesDev0.TimeStamp=2020.11.07-10.00.49
GamesDev0.LastCompileMethod=Unknown
UEPyICU.TimeStamp=2020.11.07-10.20.47
UEPyICU.TimeStamp=2020.11.07-12.01.09
UEPyICU.LastCompileMethod=Runtime
[MRU]
Expand Down Expand Up @@ -1234,7 +1234,7 @@ bUseUnsortedMenus=False
[DetailCustomWidgetExpansion]
MaterialEditorInstanceConstant=MaterialEditorInstanceConstant.ParameterGroups.Static Switch Parameter Values,
MaterialInstanceConstant=
MaterialInstanceConstant=MaterialEditorInstanceConstant.ParameterGroups.Static Switch Parameter Values,
[MessageLog]
LastLogListing=CompilerResultsLog
Expand Down

0 comments on commit edb077b

Please sign in to comment.