Skip to content

Commit 1286a0d

Browse files
author
Roberto De Ioris
committed
fixed non editor builds
1 parent 7ceae7e commit 1286a0d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Source/UnrealEnginePython/Private/UObject/UEPySkeletal.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,11 +953,15 @@ PyObject *py_ue_skeletal_mesh_register_morph_target(ue_PyUObject *self, PyObject
953953
if (!morph->HasValidData())
954954
return PyErr_Format(PyExc_Exception, "the MorphTarget has no valid data");
955955

956+
#if WITH_EDITOR
956957
mesh->PreEditChange(nullptr);
958+
#endif
957959

958960
mesh->RegisterMorphTarget(morph);
959961

962+
#if WITH_EDITOR
960963
mesh->PostEditChange();
964+
#endif
961965
mesh->MarkPackageDirty();
962966

963967
Py_RETURN_NONE;

0 commit comments

Comments
 (0)