Skip to content

Commit 0dcbb7e

Browse files
author
Roberto De Ioris
committed
fixed 4.15 build
1 parent fabb4c2 commit 0dcbb7e

File tree

11 files changed

+20
-3
lines changed

11 files changed

+20
-3
lines changed

Source/PythonConsole/Private/SPythonLog.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "SlateCore.h"
77
#include "UnrealEnginePython.h"
88
#include "Runtime/Slate/Public/Widgets/Input/SMultiLineEditableTextBox.h"
9+
#include "Runtime/Slate/Public/Widgets/Input/SEditableTextBox.h"
910

1011
class FPythonLogTextLayoutMarshaller;
1112
class SSearchBox;

Source/PythonEditor/Private/PYRichTextSyntaxHighlighterTextLayoutMarshaller.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
22
#pragma once
33

4-
4+
#include "Runtime/SlateCore/Public/Styling/SlateTypes.h"
55
#include "PythonSyntaxTokenizer.h"
66
#include "PlainTextLayoutMarshaller.h"
77
#include "ITextDecorator.h"

Source/PythonEditor/Private/PythonEditorCustomization.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#pragma once
44

5+
#include "UnrealEd.h"
56
#include "PythonEditorCustomization.generated.h"
67

78
USTRUCT()

Source/PythonEditor/Private/PythonProjectEditorToolbar.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
#pragma once
44

5+
#include "PythonProjectEditor.h"
6+
#include "Runtime/Slate/Public/Framework/MultiBox/MultiBoxBuilder.h"
7+
58
class FPythonProjectEditorToolbar : public TSharedFromThis<FPythonProjectEditorToolbar>
69
{
710
public:

Source/PythonEditor/Private/PythonProjectItem.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#pragma once
44

5+
#include "UnrealEd.h"
56
#include "PythonProjectItem.generated.h"
67

78
/** Types of project items. Note that the enum ordering determines the tree sorting */

Source/PythonEditor/Private/PythonSyntaxTokenizer.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
22
#pragma once
33

4+
#include "Runtime/Slate/Public/Framework/Text/SyntaxTokenizer.h"
5+
46
/**
57
* Tokenize the text based upon the given rule set
68
*/

Source/PythonEditor/Private/SPythonEditableText.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include "SPythonEditableText.h"
44
#include "PythonEditorStyle.h"
5+
#include "Runtime/Slate/Public/Framework/Application/SlateApplication.h"
56

67

78
void SPythonEditableText::Construct(const FArguments& InArgs)

Source/PythonEditor/Private/SPythonEditor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "Runtime/Slate/Public/Widgets/Layout/SGridPanel.h"
1010
#include "PythonEditorStyle.h"
1111
#include "Runtime/Slate/Public/Widgets/Text/STextBlock.h"
12+
#include "Runtime/Slate/Public/Widgets/Layout/SScrollBar.h"
1213
#include "UnrealEnginePython.h"
1314

1415

Source/PythonEditor/Private/SPythonEditor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#pragma once
44

55
#include "SlateCore.h"
6+
#include "Runtime/Slate/Public/Widgets/Layout/SScrollBar.h"
67

78
class SPythonEditor : public SCompoundWidget
89
{

Source/UnrealEnginePython/Private/UEPyEditor.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,13 +676,15 @@ PyObject *py_unreal_engine_rename_asset(PyObject * self, PyObject * args)
676676
FAssetToolsModule& AssetToolsModule = FModuleManager::LoadModuleChecked<FAssetToolsModule>("AssetTools");
677677

678678
TArray<FAssetRenameData> AssetsAndNames;
679+
FString Destination = FString(UTF8_TO_TCHAR(destination));
680+
681+
#if ENGINE_MINOR_VERSION > 15
679682
FAssetRenameData RenameData;
680683
RenameData.Asset = asset.GetAsset();
681684

682-
FString Destination = FString(UTF8_TO_TCHAR(destination));
683-
684685
if (Destination.StartsWith("/"))
685686
{
687+
686688
RenameData.NewPackagePath = FPackageName::GetLongPackagePath(Destination);
687689
RenameData.NewName = FPackageName::GetShortName(Destination);
688690
}
@@ -696,6 +698,9 @@ PyObject *py_unreal_engine_rename_asset(PyObject * self, PyObject * args)
696698
{
697699
RenameData.bOnlyFixSoftReferences = true;
698700
}
701+
#else
702+
FAssetRenameData RenameData(TWeakObjectPtr<UObject>(asset.GetAsset()), FPackageName::GetLongPackagePath(UTF8_TO_TCHAR(path)), Destination.StartsWith("/") ? FPackageName::GetShortName(Destination) : Destination);
703+
#endif
699704

700705
AssetsAndNames.Add(RenameData);
701706
#if ENGINE_MINOR_VERSION < 19

0 commit comments

Comments
 (0)