File tree 2 files changed +7
-5
lines changed
Source/MDViewModelGraph/Private/Nodes
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#include " BlueprintActionDatabaseRegistrar.h"
4
4
#include " BlueprintNodeSpawner.h"
5
+ #include " Kismet2/CompilerResultsLog.h"
5
6
#include " Util/MDViewModelAssignmentReference.h"
6
7
#include " Util/MDViewModelFunctionLibrary.h"
7
8
#include " ViewModel/MDViewModelBase.h"
@@ -83,18 +84,18 @@ void UMDVMNode_SetViewModelOfClass::UpdateAssignmentBasedData()
83
84
GetAssignmentFromPinDefaults (Assignment);
84
85
85
86
const TSubclassOf<UMDViewModelBase> ViewModelClass = Assignment.ViewModelClass .LoadSynchronous ();
86
-
87
+
87
88
// Change the return pin's class to the assigned view model class
88
89
if (IsValid (ViewModelClass))
89
90
{
90
91
if (UEdGraphPin* ReturnPin = GetReturnValuePin ())
91
92
{
92
93
ReturnPin->PinType .PinSubCategoryObject = ViewModelClass;
93
94
}
94
-
95
+
95
96
#if WITH_EDITOR
96
97
bool bAreViewModelSettingsRequired = false ;
97
-
98
+
98
99
// Check if view model settings are required by the view model
99
100
if (const UMDViewModelBase* VMCDO = ViewModelClass.GetDefaultObject ())
100
101
{
@@ -116,13 +117,13 @@ void UMDVMNode_SetViewModelOfClass::UpdateAssignmentBasedData()
116
117
{
117
118
bAreViewModelSettingsValid = true ;
118
119
VMSettingsPin->BreakAllPinLinks (true );
119
- }
120
+ }
120
121
#endif
121
122
122
123
ErrorMsg.Reset ();
123
124
ErrorType = EMessageSeverity::Info + 1 ;
124
125
bHasCompilerMessage = false ;
125
-
126
+
126
127
FCompilerResultsLog Log;
127
128
ValidateNodeDuringCompilation (Log);
128
129
}
Original file line number Diff line number Diff line change 3
3
#include " Bindings/MDViewModelChangedBinding.h"
4
4
#include " EdGraphSchema_K2.h"
5
5
#include " K2Node_FunctionEntry.h"
6
+ #include " Kismet2/CompilerResultsLog.h"
6
7
#include " Util/MDViewModelAssignment.h"
7
8
#include " Util/MDViewModelAssignmentData.h"
8
9
#include " Util/MDViewModelGraphStatics.h"
You can’t perform that action at this time.
0 commit comments