You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
MVVM: Test if the properties or functions are allowed at compile time.
#jira UE-164316 #preflight 63eaf47eb91ae11c1cf4ded7, 63ece0c9514832b242a0f66b [CL 24251528 by patrick boutot in ue5-main branch]
This commit is contained in:
+12
-12
@@ -259,10 +259,10 @@ TValueOrError<FCompiledBindingLibraryCompiler::FFieldPathHandle, FText> FCompile
|
||||
return MakeError(ValidatedStr);
|
||||
}
|
||||
|
||||
//if (!GetDefault<UMVVMDeveloperProjectSettings>()->IsPropertyAllowed(FieldVariant.GetProperty()))
|
||||
//{
|
||||
// return MakeError(LOCTEXT("PropertyNotAllow", "A property is not allowed."));
|
||||
//}
|
||||
if (!GetDefault<UMVVMDeveloperProjectSettings>()->IsPropertyAllowed(FieldVariant.GetProperty()))
|
||||
{
|
||||
return MakeError(LOCTEXT("PropertyNotAllow", "A property is not allowed."));
|
||||
}
|
||||
|
||||
RawFieldIndexes.Add(Impl->AddUniqueField(FieldVariant));
|
||||
}
|
||||
@@ -280,10 +280,10 @@ TValueOrError<FCompiledBindingLibraryCompiler::FFieldPathHandle, FText> FCompile
|
||||
return MakeError(FText::Format(LOCTEXT("FunctionNotReadableAtRuntime", "Function '{0}' is not readable at runtime."), FieldVariant.GetFunction()->GetDisplayNameText()));
|
||||
}
|
||||
|
||||
//if (!GetDefault<UMVVMDeveloperProjectSettings>()->IsFunctionAllowed(FieldVariant.GetFunction()))
|
||||
//{
|
||||
// return MakeError(LOCTEXT("FunctionNotAllow", "A function is not allowed."));
|
||||
//}
|
||||
if (!GetDefault<UMVVMDeveloperProjectSettings>()->IsFunctionAllowed(FieldVariant.GetFunction()))
|
||||
{
|
||||
return MakeError(LOCTEXT("FunctionNotAllow", "A function is not allowed."));
|
||||
}
|
||||
|
||||
if (bIsLast && !bInRead)
|
||||
{
|
||||
@@ -388,10 +388,10 @@ TValueOrError<FCompiledBindingLibraryCompiler::FFieldPathHandle, FText> FCompile
|
||||
}
|
||||
}
|
||||
|
||||
//if (!GetDefault<UMVVMDeveloperProjectSettings>()->IsConversionFunctionAllowed(Function))
|
||||
//{
|
||||
// return MakeError(LOCTEXT("ConversionFunctionNotAllow", "The conversion function is not allowed."));
|
||||
//}
|
||||
if (!GetDefault<UMVVMDeveloperProjectSettings>()->IsConversionFunctionAllowed(Function))
|
||||
{
|
||||
return MakeError(LOCTEXT("ConversionFunctionNotAllow", "The conversion function is not allowed."));
|
||||
}
|
||||
|
||||
TArray<int32> RawFieldIndexes;
|
||||
RawFieldIndexes.Add(Impl->AddUniqueField(FMVVMConstFieldVariant(Function)));
|
||||
|
||||
Reference in New Issue
Block a user