Commit Graph

46 Commits

Author SHA1 Message Date
patrick boutot
7b72708573 MVVM: Fix bug in ViewModelBlueprint: the function graph are removed correctly and the we now use the blueprintsetter.
#rb sebastian.nordren

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20259332 via CL 20259333 via CL 20259334
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20262976 by patrick boutot in ue5-main branch]
2022-05-18 12:54:21 -04:00
patrick boutot
38b2f19b88 MVVM: Blueprint Path can now support long path. A deprecation path exist. The compiler was modified to support long path. A ViewModelCreator is generated for Manual, this allow the setter to works in standalone.
#rb sebastian.nordgren

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20259322 via CL 20259326 via CL 20259331
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20262972 by patrick boutot in ue5-main branch]
2022-05-18 12:54:12 -04:00
patrick boutot
02c1565203 MVVM: Use a native function to set a property on the viewmodel.
#rb sebastian.nordgren
#preflight 627bcb932d67896030144c3d

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20167493 via CL 20167503 via CL 20167511
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20168560 by patrick boutot in ue5-main branch]
2022-05-12 14:55:19 -04:00
sebastian nordgren
1828823aea MVVM - Removed unnecessary SetBindingReference() overload.
[REVIEW] [at]vincent.gauthier, [at]patrick.boutot
#jira UE-147743
#preflight 62690d6d4c09420241070e76
#rnx

#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 20165329 via CL 20165339 via CL 20165348
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20167597 by sebastian nordgren in ue5-main branch]
2022-05-12 13:58:05 -04:00
patrick boutot
99e021c9de MVVM: Add add EMVVMBlueprintViewModelContextCreationType::Manual. An option for how to create/select a view model.
Rename a graph temporary function when the compiler didn't requested a GC at the end of the compilation.
#rb sebastian.nordgren

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20106550 via CL 20107643 via CL 20108182
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20110552 by patrick boutot in ue5-main branch]
2022-05-09 16:35:28 -04:00
patrick boutot
cfe2d6be17 MVVM: Convert function path to member reference. Use the proper function skel class when compiling the conversion function.
#rb vincent.gauthier
#prelfight 6273eb01de15651eeb3547de

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 20059860 via CL 20059875 via CL 20059885
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20062060 by patrick boutot in ue5-main branch]
2022-05-05 14:31:09 -04:00
eric mcdaniel
1c6e278160 Fix for uninitialized script struct member causing validation failure on QAGame cook
- default FMVVMPropertyPathBase::BindingKind to Function to pass validation test AttemptToFindUninitializedScriptStructMembers

- testing
  - BCR of Win64 QAGame locally

#rb none, trivial
#jira UE-151201
#preflight 62740ff1fd59d6606efbfc16

[CL 20061256 by eric mcdaniel in ue5-main branch]
2022-05-05 14:11:44 -04:00
sebastian nordgren
2301e39ae9 MVVM - Fixes to compiler error messages.
[REVIEW] [at]vincent.gauthier, [at]patrick.boutot
#jira UE-145736

#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 19937262 via CL 19937283 via CL 19937304
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19938019 by sebastian nordgren in ue5-main branch]
2022-04-27 08:52:49 -04:00
sebastian nordgren
a9201fd96c MVVM - Invalid error message that complains about duplicate setter functions no longer triggers.
[REVIEW] [at]vincent.gauthier, [at]patrick.boutot
#jira UE-145736
#preflight 62690d794c09420241070ee6

#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 19937258 via CL 19937276 via CL 19937300
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 19938018 by sebastian nordgren in ue5-main branch]
2022-04-27 08:52:41 -04:00
vincent gauthier
9e0c26955b Correction to ViewModels Creation errors to add more information for user to be able to act on it.
#jira UE-149444
#rb daren.cheng

#ROBOMERGE-AUTHOR: vincent.gauthier
#ROBOMERGE-SOURCE: CL 19835496 via CL 19849372 via CL 19850834
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19853365 by vincent gauthier in ue5-main branch]
2022-04-21 14:45:21 -04:00
sebastian nordgren
958fcafdce Fixed duplicated condition detected by static analysis in UE::MVVM::FunctionGraphHelper::GenerateViewModelFieldNotifySetter().
#rb paul.chipchase
#preflight 625e65addb15ac92db87107a

#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 19805445 via CL 19805448 via CL 19805450
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v939-19570697)

[CL 19811595 by sebastian nordgren in ue5-main branch]
2022-04-19 13:09:29 -04:00
patrick boutot
f381f16a34 MVVM: First version of the viewmodel editor
#rb sebastien.nordgren, daren.cheng
#preflight 6256afff2b4502493e72edc2

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 19742639 via CL 19743098 via CL 19743424
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19745035 by patrick boutot in ue5-main branch]
2022-04-13 16:06:35 -04:00
patrick boutot
e00f1f9f99 MVVM: TryGetPropertyTypeForConversionFunction use the correct ALL flags. Fix typo. Fix CIS warning about duplicate test.
[REVIEW] sebastian.nordgren
#jira UE-148376

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 19718764 via CL 19719176 via CL 19719243
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19720257 by patrick boutot in ue5-main branch]
2022-04-12 10:00:52 -04:00
patrick boutot
d4eb795f50 MVVM:
Compiler support convertion function.
Reset the compiled library after compilation (prevents multiple loading).
Initialize the widget generated class FieldId after a compilation.
When compiling Skel, the class is not link. Property may not be found with FindFieldByName because they were just created.
MVVM message log was not initialized.
Fix nullptr deferecing warning.
#rnx
#rb 19686188

#ROBOMERGE-AUTHOR: patrick.boutot
#ROBOMERGE-SOURCE: CL 19705236 via CL 19705239 via CL 19705248
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19705732 by patrick boutot in ue5-main branch]
2022-04-11 09:56:01 -04:00
daren cheng
81f233298e Cleanup MVVM Field to MemberReference conversion
#jira UE-146752
#rb Patrick.Boutot
#preflight skip

[CL 19654619 by daren cheng in ue5-main branch]
2022-04-06 16:13:51 -04:00
sebastian nordgren
f5486be90c Removed static function limitation on conversion functions, which allows us to use functions defined on the UserWidget as conversion functions.
Formatting of errors changed to include the binding name (SourceObject.SourceProperty <-/<->/-> DestObject.DestProperty). Errors are now stored in the binding object again.

Renamed GetConversionFunctionPath to SourceToDestinationFunctionPath and SetConversionFunctionPath to DestinationToSourceFunctionPath.

#jira UE-148310
#review-19644346 @editor-ui-systems
#preflight 624d590e7d2eea4e18eddbb0

[CL 19645570 by sebastian nordgren in ue5-main branch]
2022-04-06 08:17:40 -04:00
daren cheng
dc02aacea5 Make MVVM PropertyPath reference getters / setters via FMemberReference.
#jira UE-146752
#rb Patrick.Boutot
#preflight 624cee38a64871f1a115f467

[CL 19639440 by daren cheng in ue5-main branch]
2022-04-05 22:00:18 -04:00
Patrick Boutot
d831ff9671 MVVM: Enable the bExposeOnSpawn flag on viewmodel property. Make sure the setter for viewmodel has the correct name.
#preflight 624c38133a5a4c1622052a1f

[CL 19623267 by Patrick Boutot in ue5-main branch]
2022-04-05 08:43:49 -04:00
gtreshchev
970b7dce2b PR #9047: Using scope resolution operator to fix MVVM compilation (Contributed by gtreshchev)
#rb sebastian.nordgren
#preflight 624c3715470aff98e9af91df

[CL 19623228 by gtreshchev in ue5-main branch]
2022-04-05 08:41:43 -04:00
Patrick Boutot
2fc09cd803 Fix missing include.
#rnx
#jira UE-148054
#rn none
#preflight none

[CL 19611547 by Patrick Boutot in ue5-main branch]
2022-04-04 13:15:12 -04:00
Patrick Boutot
5cc291be88 MVVM: Move the ModelViewViewModel plugin to //UE5/Main/
#preflight 62471b2edc6183e3f51a8a07
#preflight 62473c85f73c316f680acef9

[CL 19592606 by Patrick Boutot in ue5-main branch]
2022-04-01 14:21:11 -04:00