Skip to content

Commit 353b2ee

Browse files
author
Roberto De Ioris
committed
fixed 4.19
1 parent 2921f8b commit 353b2ee

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Source/UnrealEnginePython/Private/UObject/UEPyMaterial.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@ PyObject *py_ue_set_material(ue_PyUObject *self, PyObject * args)
5656
if (!material)
5757
return PyErr_Format(PyExc_Exception, "argument is not a UMaterialInterface");
5858

59-
59+
#if ENGINE_MINOR_VERSION >= 20
6060
UStaticMesh *mesh = ue_py_check_type<UStaticMesh>(self);
6161
if (mesh)
6262
{
6363
mesh->SetMaterial(slot, material);
6464
Py_RETURN_NONE;
6565
}
66+
#endif
6667

6768
UPrimitiveComponent *primitive = ue_py_check_type<UPrimitiveComponent>(self);
6869
if (!primitive)

Source/UnrealEnginePython/Private/UObject/UEPySequencer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
#include "Editor/Sequencer/Public/ISequencer.h"
1212
#include "Editor/Sequencer/Public/ISequencerModule.h"
1313
#include "Editor/UnrealEd/Public/Toolkits/AssetEditorManager.h"
14+
#if ENGINE_MINOR_VERSION >= 20
1415
#include "LevelSequenceEditor/Private/LevelSequenceEditorToolkit.h"
16+
#else
17+
#include "Private/LevelSequenceEditorToolkit.h"
18+
#endif
1519
#include "Tracks/MovieSceneCameraCutTrack.h"
1620
#if ENGINE_MINOR_VERSION < 20
1721
#include "Sections/IKeyframeSection.h"

0 commit comments

Comments
 (0)