# Materials ID bug on re-import

**URL:** <https://forums.unrealengine.com/t/materials-id-bug-on-re-import/380851>\
**Category:** Rendering\
**Tags:** bug, unreal-engine, question\
**Created:** [January 4, 2017, 9:47am UTC](https://forums.unrealengine.com/t/materials-id-bug-on-re-import/380851 "2017-01-04T09:47:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Midkemia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Midkemia](https://forums.unrealengine.com/u/Midkemia)\
**Post date:** [January 4, 2017, 9:47am UTC](https://forums.unrealengine.com/t/materials-id-bug-on-re-import/380851/1 "2017-01-04T09:47:26Z")

</div>

Hi everyone,

When I re-import a multi-material IDs mesh, it still has the right number of IDs but they work like they are all instanced on the first one. ID 1 2 3 don’t take their assigned material in considération, they all take the ID 0’s assigned material.

They only way I found to make it work is to delete the asset from the content browser, then import it and reassign the materials to the asset’s IDs.

The problem is that in this process I have to reassign all the materials, lighmaps resolutions, and other parameters. Then I need to place every instance of the asset in the scene, one by one. It wastes a lot of time.

Do you guys have the same problem? Did you find a workaround?

Thank you for reading.

---

<div class="post-metadata">

**Author:** ![D\_Arcadius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D\_Arcadius](https://forums.unrealengine.com/u/D_Arcadius)\
**Post date:** [January 4, 2017, 11:40am UTC](https://forums.unrealengine.com/t/materials-id-bug-on-re-import/380851/2 "2017-01-04T11:40:51Z")

</div>

This was mentioned here:  
[https://answers.unrealengine.com/questions/524879/material-ids-broken-in-414.html](https://answers.unrealengine.com/questions/524879/material-ids-broken-in-414.html)

There is a bug report for this here:  
[https://issues.unrealengine.com/issue/UE-38750](https://issues.unrealengine.com/issue/UE-38750)

---

<div class="post-metadata">

**Author:** ![Midkemia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Midkemia](https://forums.unrealengine.com/u/Midkemia)\
**Post date:** [January 4, 2017, 3:21pm UTC](https://forums.unrealengine.com/t/materials-id-bug-on-re-import/380851/3 "2017-01-04T15:21:20Z")

</div>

My problem is totally different, IDs don’t get switched, only ID 0 works and all other IDs take the ID 0’s material in the viewport no matter which material is assigned to them.

---

<div class="post-metadata">

**Author:** ![erebel55](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@erebel55](https://forums.unrealengine.com/u/erebel55)\
**Post date:** [March 20, 2017, 2:57pm UTC](https://forums.unrealengine.com/t/materials-id-bug-on-re-import/380851/4 "2017-03-20T14:57:09Z")

</div>

Yes I am having this issue in 4.15. I’ve had it in previous versions of the engine too. My materials get switched around when I reimport a mesh. I’ve also noticed it when restarting unreal (and not reimporting).

---

<div class="post-metadata">

**Author:** ![bbowling](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bbowling](https://forums.unrealengine.com/u/bbowling)\
**Post date:** [March 16, 2018, 6:55pm UTC](https://forums.unrealengine.com/t/materials-id-bug-on-re-import/380851/5 "2018-03-16T18:55:00Z")

</div>

If you open the mesh and then go into the property matrix (top right of asset details next to all the material assignments) expand the skeletal mesh rollout and next to materials hit the garbage can icon. This will delete all the material assignments (not the materials) then when you re-import the material IDs and associated UV’s from max will be taken from the newly exported file not the one that exported initially. You will still have to re-assign all the materials. There should be an import option to override the materials in UE4 with the ones from the file being imported. Hope it helps.

---

<div class="post-metadata">

**Author:** ![Midkemia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Midkemia](https://forums.unrealengine.com/u/Midkemia)\
**Post date:** [March 16, 2018, 8:12pm UTC](https://forums.unrealengine.com/t/materials-id-bug-on-re-import/380851/6 "2018-03-16T20:12:31Z")

</div>

Thanks for your answer, I’ll try that soon 🙂
