Skip to content

Commit 1a958ac

Browse files
author
Roberto De Ioris
committed
ported to $.15
1 parent b755681 commit 1a958ac

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Source/PythonEditor/Private/PythonProjectEditor.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include "WorkflowCentricApplication.h"
66
#include "Editor/Kismet/Public/WorkflowOrientedApp/WorkflowTabManager.h"
7+
#include "Runtime/Launch/Resources/Version.h"
78

89
class FPythonProjectEditor : public FWorkflowCentricApplication, public FGCObject
910
{
@@ -103,5 +104,7 @@ class FPythonProjectEditor : public FWorkflowCentricApplication, public FGCObjec
103104
static TWeakPtr<FPythonProjectEditor> PythonEditor;
104105

105106
virtual bool CanSaveAsset() const override { return false; }
107+
#if ENGINE_MINOR_VERSION > 15
106108
virtual bool CanFindInContentBrowser() const override { return false; }
109+
#endif
107110
};

Source/UnrealEnginePython/Private/SlateApplication/UEPyFSlateApplication.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ static PyObject *py_ue_process_key_char_event(PyObject *cls, PyObject * args)
154154

155155
static PyObject *py_ue_create(PyObject *cls, PyObject * args)
156156
{
157+
#if ENGINE_MINOR_VERSION > 15
157158
FSlateApplication::InitHighDPI();
159+
#endif
158160
FSlateApplication::Create();
159161

160162
TSharedRef<FSlateRenderer> SlateRenderer = FModuleManager::Get().LoadModuleChecked<ISlateRHIRendererModule>("SlateRHIRenderer").CreateSlateRHIRenderer();

0 commit comments

Comments
 (0)