Skip to content

Commit

Permalink
修改:格式化缩进
Browse files Browse the repository at this point in the history
  • Loading branch information
xuyanghuang-tencent committed Feb 2, 2023
1 parent 049d3e7 commit bed0bb6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ class FUnLuaDefaultParamCollectorModule : public IScriptGeneratorPluginInterface
else if (Property->IsA(FBoolProperty::StaticClass())) // boolean
{
PreAddProperty(Class, Function);
if(ValueStr.IsEmpty())
GeneratedFileContent += FString::Printf(TEXT("PC->Parameters.Add(TEXT(\"%s\"), SharedBool_FALSE);\r\n"), *Property->GetName());
else
GeneratedFileContent += FString::Printf(TEXT("PC->Parameters.Add(TEXT(\"%s\"), SharedBool_%s);\r\n"), *Property->GetName(), *ValueStr.ToUpper());
if (ValueStr.IsEmpty())
GeneratedFileContent += FString::Printf(TEXT("PC->Parameters.Add(TEXT(\"%s\"), SharedBool_FALSE);\r\n"), *Property->GetName());
else
GeneratedFileContent += FString::Printf(TEXT("PC->Parameters.Add(TEXT(\"%s\"), SharedBool_%s);\r\n"), *Property->GetName(), *ValueStr.ToUpper());
}
else if (Property->IsA(FNameProperty::StaticClass())) // FName
{
Expand Down

0 comments on commit bed0bb6

Please sign in to comment.