Skip to content

Commit 9af5414

Browse files
committed
- Fixed build errors when trying to build the plugin with UE5.3.
1 parent 29d41a5 commit 9af5414

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Source/HoudiniEngineEditor/Private/HoudiniAssetEditor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,11 @@ FHoudiniAssetEditor::RegisterTabSpawners(const TSharedRef<class FTabManager>& In
286286
.SetDisplayName(LOCTEXT("PreviewSceneTab", "Preview Scene Settings"))
287287
.SetGroup(WorkspaceMenuCategoryRef)
288288
.SetIcon(FSlateIcon(FAppStyle::GetAppStyleSetName(), "LevelEditor.Tabs.Details"))
289+
#if (ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION > 3)
289290
.SetReadOnlyBehavior(ETabReadOnlyBehavior::Custom);
291+
#else
292+
;
293+
#endif
290294
}
291295

292296
void

Source/HoudiniEngineEditor/Private/HoudiniAssetEditorViewportClient.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
#include "HoudiniSplineComponent.h"
3535

3636
#include "ActorFactories/ActorFactory.h"
37-
#include "Editor/ActorPositioning.h"
37+
#if (ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION > 3)
38+
#include "Editor/ActorPositioning.h"
39+
#endif
3840
#include "ComponentVisualizer.h"
3941
#include "Editor/AdvancedPreviewScene/Public/AdvancedPreviewSceneModule.h"
4042
#include "Editor/UnrealEd/Public/UnrealWidget.h"
@@ -280,6 +282,8 @@ FHoudiniAssetEditorViewportClient::InputKey(const FInputKeyEventArgs& InEventArg
280282
.SetRealtimeUpdate(IsRealtime()));
281283

282284
FSceneView* View = CalcSceneView(&ViewFamily);
285+
286+
#if (ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION > 3)
283287
// Compute the click location.
284288
if (InputState.IsMouseButtonEvent() && InputState.IsAnyMouseButtonDown())
285289
{
@@ -292,6 +296,7 @@ FHoudiniAssetEditorViewportClient::InputKey(const FInputKeyEventArgs& InEventArg
292296
// Snap the new location if snapping is enabled
293297
FSnappingUtils::SnapPointToGrid(GEditor->ClickLocation, FVector::ZeroVector);
294298
}
299+
#endif
295300

296301
if (GUnrealEd->ComponentVisManager.HandleInputKey(this, InEventArgs.Viewport, InEventArgs.Key, InEventArgs.Event))
297302
{

0 commit comments

Comments
 (0)