# Some data left over when re-importing the mesh

**URL:** <https://forums.unrealengine.com/t/some-data-left-over-when-re-importing-the-mesh/2341176>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, skeletal-mesh-import, question, CPP\
**Created:** [February 18, 2025, 4:42am UTC](https://forums.unrealengine.com/t/some-data-left-over-when-re-importing-the-mesh/2341176 "2025-02-18T04:42:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![c\_9](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/c_9/32/1029668_2.png) [@c\_9](https://forums.unrealengine.com/u/c_9)\
**Post date:** [February 18, 2025, 4:42am UTC](https://forums.unrealengine.com/t/some-data-left-over-when-re-importing-the-mesh/2341176/1 "2025-02-18T04:42:58Z")

</div>

### Summary

I want to know why after using the new import framework in UE5.5, the FSkeletalMeshLODModel::ActiveBoneIndices in the re-overwritten skeletalmesh file will not be cleared and then new values ​​will be added.  
The code FMeshUtilities::BuildSkeletalModelFromChunks will clear Section and IndefexBuffer at the beginning, and the final call to USkeletalMesh::CalculateRequiredBones will also clear RequiredBones.  
When reimporting the previous 5.1 version, a new one will be created in FFbxImporter::ImoportSkeletalMesh, which will naturally be cleared.  
This leads to a problem: if the re-imported Skeletal Mesh uses fewer bones, the index values ​​of ActiveBoneIndices will be retained beyond SkeletalMesh::RefSkeleton::GetNum(), but what is the actual use of these retained values?

### Please select what you are reporting on:

Creative

### What Type of Bug are you experiencing?

Assets

### Steps to Reproduce

1. import a skeletal mesh(fbx)
2. edit mesh in 3ds max, use less bone
3. reimport/override the mesh .

### Expected Result

all the values in USkeletalMesh::GetResourceForRendering()-\>LODRenderData[i].ActiveBoneIndices are valid

### Observed Result

USkeletalMesh::GetResourceForRendering()-\>LODRenderData[i].ActiveBoneIndices has some values ​​that exceed  
SkeletalMesh::RefSkeleton::GetNum()

### Platform(s)

windows 11

### Upload an image

 ![企业微信截图_17398523983693.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/a/80a050402be417c40cc549ecf37227dcca5920c1.png)  
 ![企业微信截图_17398535555338.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/a/88a28898ea9d32f164687a5bb37f5282dd1b3093.png)  
 ![企业微信截图_17398537683360.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/2/902dda6cf93fcee8ec7bff690a19af6974217937.png)

---

<div class="post-metadata">

**Author:** ![c\_9](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/c_9/32/1029668_2.png) [@c\_9](https://forums.unrealengine.com/u/c_9)\
**Post date:** [February 18, 2025, 5:11am UTC](https://forums.unrealengine.com/t/some-data-left-over-when-re-importing-the-mesh/2341176/2 "2025-02-18T05:11:16Z")

</div>

Is it ok if I just add this line to solve the issue?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/e/0ee96f8a4a9ae64d05ad80c5965753396ebe5e3a.png)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 17, 2025, 4:43am UTC](https://forums.unrealengine.com/t/some-data-left-over-when-re-importing-the-mesh/2341176/3 "2025-08-17T04:43:12Z")

</div>

This topic was automatically closed after 180 days. New replies are no longer allowed.
