Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit a6b0569

Browse files
author
Roberto De Ioris
committed
fixed non editor build
1 parent 055271e commit a6b0569

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Source/UnrealEnginePython/Private/UObject/UEPySkeletal.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ PyObject *py_ue_skeletal_mesh_set_soft_vertices(ue_PyUObject *self, PyObject * a
233233
mesh->RefBasesInvMatrix.Empty();
234234
mesh->CalculateInvRefMatrices();
235235

236+
#if WITH_EDITOR
236237
mesh->PostEditChange();
238+
#endif
237239
mesh->InitResources();
238240
mesh->MarkPackageDirty();
239241

@@ -298,7 +300,9 @@ PyObject *py_ue_skeletal_mesh_set_skeleton(ue_PyUObject * self, PyObject * args)
298300
mesh->RefBasesInvMatrix.Empty();
299301
mesh->CalculateInvRefMatrices();
300302

303+
#if WITH_EDITOR
301304
mesh->PostEditChange();
305+
#endif
302306
mesh->InitResources();
303307
mesh->MarkPackageDirty();
304308

@@ -358,7 +362,9 @@ PyObject *py_ue_skeletal_mesh_set_bone_map(ue_PyUObject *self, PyObject * args)
358362
mesh->RefBasesInvMatrix.Empty();
359363
mesh->CalculateInvRefMatrices();
360364

365+
#if WITH_EDITOR
361366
mesh->PostEditChange();
367+
#endif
362368
mesh->InitResources();
363369
mesh->MarkPackageDirty();
364370

@@ -474,7 +480,9 @@ PyObject *py_ue_skeletal_mesh_set_active_bone_indices(ue_PyUObject *self, PyObje
474480
mesh->RefBasesInvMatrix.Empty();
475481
mesh->CalculateInvRefMatrices();
476482

483+
#if WITH_EDITOR
477484
mesh->PostEditChange();
485+
#endif
478486
mesh->InitResources();
479487
mesh->MarkPackageDirty();
480488

@@ -559,7 +567,9 @@ PyObject *py_ue_skeletal_mesh_set_required_bones(ue_PyUObject *self, PyObject *
559567
mesh->RefBasesInvMatrix.Empty();
560568
mesh->CalculateInvRefMatrices();
561569

570+
#if WITH_EDITOR
562571
mesh->PostEditChange();
572+
#endif
563573
mesh->InitResources();
564574
mesh->MarkPackageDirty();
565575

0 commit comments

Comments
 (0)