# Dynamic Material Instance with Decal make external link bug

**URL:** <https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663>\
**Category:** Rendering\
**Tags:** bug, unreal-engine, external-reference, bug-report, Decals, question\
**Created:** [April 27, 2016, 12:40pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663 "2016-04-27T12:40:17Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [April 27, 2016, 12:40pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/1 "2016-04-27T12:40:17Z")

</div>

![88592-decalmi_bug.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/f/a0f1888e2a034ef4176ac519f6e5c9fb7b254dd8.jpeg)

With setup shown in picture I’ve got messages about some external references to material instance when I try to save map and given actor is placed on that map. Basically - i can’t save a map.  
I think in 4.10 it worked fine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [April 27, 2016, 5:02pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/2 "2016-04-27T17:02:34Z")

</div>

Hi Gomo,

- Does this occur in a clean, blank project with no additional content or is it limited to one project?
- What steps can I take to reproduce this on my end?
- What is your material setup?

---

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [April 28, 2016, 9:43am UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/3 "2016-04-28T09:43:32Z")

</div>

Just checked - it occurs also in blank project.  
Steps to reproduce:

- Create blank BP actor.
- add decal component
- create material with decal domain and scalar parameter for opacity
- create material instance from that decal material
- assign material instance to decal component
- reproduce BP flow from picture from first post
- place actor in the scene
- try to save the scene.  
Material in tested case was just one scalar parameter connected to opacity.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [April 28, 2016, 4:44pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/4 "2016-04-28T16:44:56Z")

</div>

Do you have an asset this is occurring in I’d be able to take a look at? Thus far I have not been able to reproduce this on my end.

---

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [April 28, 2016, 5:24pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/5 "2016-04-28T17:24:17Z")

</div>

link text  
In attachment is entire content (3 files) of the blank project I created to debug this.  
It’s created based on BP-based project.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [April 28, 2016, 6:00pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/6 "2016-04-28T18:00:16Z")

</div>

Unfortunately I have not been able to reproduce this error on my end. Do you have any specific steps I can take with these asets to recreate the error?

---

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [April 28, 2016, 6:21pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/7 "2016-04-28T18:21:19Z")

</div>

It’s weird - I’ll ask some of my friends I they can reproduce this - maybe it is something wrong with my engine or something.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [April 28, 2016, 7:47pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/8 "2016-04-28T19:47:48Z")

</div>

Try running “fix up redirectors” on your content browser by right clicking on the Content folder and pressing “Fix up redirectors”. This should remove any lingering redirects from moving/renaming assets that may be causing the error to occur.

---

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [April 28, 2016, 8:43pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/9 "2016-04-28T20:43:19Z")

</div>

Didn’t work.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [April 29, 2016, 3:52pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/10 "2016-04-29T15:52:25Z")

</div>

Do you have any other steps I can take to reproduce this error on my end? If you are comfortable with it and upload the project where this is occurring I’ll be happy to take a look and see if I can reproduce it in the environment it is already occurring in.

---

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [April 29, 2016, 4:16pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/11 "2016-04-29T16:16:45Z")

</div>

link text  
Entire project in attachment

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [May 2, 2016, 5:04pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/12 "2016-05-02T17:04:24Z")

</div>

Try setting your blueprint decal variable to the original material, save, then switch back to the material instance. Does this fix the error on your end?

It looks from my end like a minor corruption of the variable’s pointer, and if this resolves the error , as I have not been able to reproduce this in any other situation in any other project. Please try this and let me know if your error resolves.

---

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [May 3, 2016, 12:54am UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/13 "2016-05-03T00:54:05Z")

</div>

It worked - but only for debug project - in main project where I use it it still doesn’t work, but I have the a bit more complicated shader - I’ll try to mess around a little bit with it.

---

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [May 3, 2016, 1:43pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/14 "2016-05-03T13:43:20Z")

</div>

Unfortunately it didn’t work - in main project BP after various still changes can’t be saved on the scene.  
I tried to make a copy of the blueprint - after deleting and adding decal component - it worked with copied BP but not with the original - maybe because it is a parent of BP hierarchy?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [May 5, 2016, 1:56pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/15 "2016-05-05T13:56:42Z")

</div>

I have another test that may address this error. Try replacing your Create Dynamic Material Instance node with a node directly connected to the decal, instead of looking for the Decal Material. You can see the change I made in the image below and this seemed to address the error:

 ![89546-matinst.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/4/a84a910e5fe320131b4a6fdaf47b0f14fd4009fa.png)

---

<div class="post-metadata">

**Author:** ![Gomo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gomo](https://forums.unrealengine.com/u/Gomo)\
**Post date:** [May 5, 2016, 2:22pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/16 "2016-05-05T14:22:43Z")

</div>

OK, It finally worked. I feel stupid for not trying that.  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [May 5, 2016, 2:27pm UTC](https://forums.unrealengine.com/t/dynamic-material-instance-with-decal-make-external-link-bug/355663/17 "2016-05-05T14:27:04Z")

</div>

I’m happy to hear this worked for you. I am marking this thread as answered for tracking purposes.
