Skip to content

Commit 03028fc

Browse files
author
Roberto De Ioris
committed
various fixes for 4.15, over 20tab#125
1 parent c84e4f1 commit 03028fc

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

Source/PythonEditor/Private/PythonProjectEditor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include "SDockTab.h"
77
#include "PythonProjectEditorToolbar.h"
88
#include "SPythonLog.h"
9+
#include "Editor/Kismet/Public/WorkflowOrientedApp/WorkflowUObjectDocuments.h"
10+
#include "Editor/Kismet/Public/WorkflowOrientedApp/ApplicationMode.h"
911
#define LOCTEXT_NAMESPACE "PythonEditor"
1012

1113
TWeakPtr<FPythonProjectEditor> FPythonProjectEditor::PythonEditor;

Source/PythonEditor/Private/PythonProjectEditor.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 "WorkflowCentricApplication.h"
6+
#include "Editor/Kismet/Public/WorkflowOrientedApp/WorkflowTabManager.h"
67

78
class FPythonProjectEditor : public FWorkflowCentricApplication, public FGCObject
89
{

Source/PythonEditor/Private/PythonProjectItem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "PythonEditorPrivatePCH.h"
44
#include "PythonProjectItem.h"
55
#include "DirectoryScanner.h"
6+
#include "Developer/DirectoryWatcher/Public/IDirectoryWatcher.h"
67

78
UPythonProjectItem::UPythonProjectItem(const FObjectInitializer& ObjectInitializer)
89
: Super(ObjectInitializer)

Source/UnrealEnginePython/Private/UnrealEnginePython.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ void FUnrealEnginePythonModule::RunString(char *str) {
147147
//Get stdout output information
148148
PyObject* catcher = PyObject_GetAttrString((PyObject*)main_module, "catcher");
149149
PyObject* output = PyObject_GetAttrString(catcher, "data");
150-
char * buffer = PyString_AsString(output);
150+
char * buffer = PyUnicode_AsUTF8(output);
151151
UE_LOG(LogPython, Log, TEXT("%s"), ANSI_TO_TCHAR(buffer));
152152

153153
PyRun_SimpleString("sys.stdout.flush()");

0 commit comments

Comments
 (0)