Skip to content

Commit

Permalink
fixed 4.18
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto De Ioris committed Aug 5, 2018
1 parent 8c3a6c5 commit 4223a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/UnrealEnginePython/Private/UObject/UEPyMaterial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ PyObject *py_ue_set_material_static_switch_parameter(ue_PyUObject *self, PyObjec
bool isExisting = false;
for (auto& parameter : staticParameterSet.StaticSwitchParameters)
{
#if ENGINE_MINOR_VERSION < 18
#if ENGINE_MINOR_VERSION < 19
if (parameter.bOverride && parameter.ParameterName == parameterName)
#else
if (parameter.bOverride && parameter.ParameterInfo.Name == parameterName)
Expand All @@ -163,7 +163,7 @@ PyObject *py_ue_set_material_static_switch_parameter(ue_PyUObject *self, PyObjec
if (!isExisting)
{
FStaticSwitchParameter SwitchParameter;
#if ENGINE_MINOR_VERSION < 18
#if ENGINE_MINOR_VERSION < 19
SwitchParameter.ParameterName = parameterName;
#else
SwitchParameter.ParameterInfo.Name = parameterName;
Expand Down

0 comments on commit 4223a15

Please sign in to comment.