Skip to content

Commit e6a7078

Browse files
author
Roberto De Ioris
committed
automatically set import bounds
1 parent e95b615 commit e6a7078

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/UnrealEnginePython/Private/UObject/UEPySkeletal.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,9 @@ PyObject *py_ue_skeletal_mesh_build_lod(ue_PyUObject *self, PyObject * args, PyO
10641064
mesh->Skeleton->RecreateBoneTree(mesh);
10651065
mesh->Skeleton->SetPreviewMesh(mesh);
10661066

1067+
// calculate bounds from points
1068+
mesh->SetImportedBounds(FBoxSphereBounds(points.GetData(), points.Num()));
1069+
10671070
mesh->Skeleton->PostEditChange();
10681071
mesh->Skeleton->MarkPackageDirty();
10691072

0 commit comments

Comments
 (0)