Skip to content

Commit f1e9050

Browse files
committed
fixed 4.17 build
1 parent a8d1778 commit f1e9050

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Source/UnrealEnginePython/Private/Wrappers/UEPyFFoliageInstance.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,13 @@ static PyObject *py_ue_ffoliage_instance_get_instance_id(ue_PyFFoliageInstance *
141141
return PyLong_FromLong(self->instance_id);
142142
}
143143

144-
144+
#if ENGINE_MINOR_VERSION > 18
145145
static PyObject *py_ue_ffoliage_instance_get_base_component(ue_PyFFoliageInstance *self, void *closure)
146146
{
147147
get_instance(self);
148148
Py_RETURN_UOBJECT(instance->BaseComponent);
149149
}
150+
#endif
150151

151152

152153

@@ -161,6 +162,9 @@ static PyGetSetDef ue_PyFFoliageInstance_getseters[] = {
161162
{ (char *)"guid", (getter)py_ue_ffoliage_instance_get_procedural_guid, nullptr, (char *)"", NULL },
162163
{ (char *)"base_id", (getter)py_ue_ffoliage_instance_get_base_id, nullptr, (char *)"", NULL },
163164
{ (char *)"instance_id", (getter)py_ue_ffoliage_instance_get_instance_id, nullptr, (char *)"", NULL },
165+
#if ENGINE_MINOR_VERSION > 18
166+
{ (char *)"base_component", (getter)py_ue_ffoliage_instance_get_base_component, nullptr, (char *)"", NULL },
167+
#endif
164168
{ NULL } /* Sentinel */
165169
};
166170

0 commit comments

Comments
 (0)