# Foliage stretching infinitely, but no foliage in level

**URL:** <https://forums.unrealengine.com/t/foliage-stretching-infinitely-but-no-foliage-in-level/367004>\
**Category:** XR Development\
**Tags:** cooked, UE4-12, unreal-engine, Foliage, UE4, question\
**Created:** [August 12, 2016, 10:19pm UTC](https://forums.unrealengine.com/t/foliage-stretching-infinitely-but-no-foliage-in-level/367004 "2016-08-12T22:19:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0cb35eb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0cb35eb8](https://forums.unrealengine.com/u/anonymous_user_0cb35eb8)\
**Post date:** [August 12, 2016, 10:19pm UTC](https://forums.unrealengine.com/t/foliage-stretching-infinitely-but-no-foliage-in-level/367004/1 "2016-08-12T22:19:10Z")

</div>

Our project was required to upgrade to 4.12 mid-development for production reasons. Since upgrading, we’ve been seeing the [bug described here][1], in which our foliage aligns at the world origin and stretches off into the distance in cooked builds (not in editor).

 ![102700-pasted+image+at+2016_08_12+04_30+pm.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/5/3756f4f03eb217f8844144320a469dbb598868d1.png)

We know that this is stated fixed in 4.13, but scheduling prohibits us from upgrading, so we need to figure out how to fix whatever is causing the issue. However, nothing we try seems to be helping - not even removing all of the foliage in our build. Even _deleting all of the assets in the level_ still doesn’t remove the problem, and the stretched grass still appears in a cook. We’ve also tried migrating into a fresh project, to no avail.

How can we remove this stretched grass from our final builds while staying in 4.12?

---

<div class="post-metadata">

**Author:** ![Avelworldcreator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Avelworldcreator](https://forums.unrealengine.com/u/Avelworldcreator)\
**Post date:** [August 13, 2016, 2:32am UTC](https://forums.unrealengine.com/t/foliage-stretching-infinitely-but-no-foliage-in-level/367004/2 "2016-08-13T02:32:42Z")

</div>

How are the assets being deleted? There is more than one way to delete them.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0cb35eb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0cb35eb8](https://forums.unrealengine.com/u/anonymous_user_0cb35eb8)\
**Post date:** [August 15, 2016, 2:40pm UTC](https://forums.unrealengine.com/t/foliage-stretching-infinitely-but-no-foliage-in-level/367004/3 "2016-08-15T14:40:09Z")

</div>

We tried both removing the foliage through the landscape tool (it currently lists 0 pieces of foliage), and just selecting all actors in the level and hitting Delete. Even after having done both of these, the stretched grass still appears when we cook a build, and it appears in all levels - not just those that the foliage was originally placed in.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [August 15, 2016, 3:37pm UTC](https://forums.unrealengine.com/t/foliage-stretching-infinitely-but-no-foliage-in-level/367004/4 "2016-08-15T15:37:22Z")

</div>

Hi Matt,

This has already been confirmed fixed in our 4.13’s binary release for Preview 2 which should be going out this week for testing.

Once this releases you can test to see if that resolves the issue you’re seeing in your project. 4.13 final release should be available towards the end of August or early September.

-Tim

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0cb35eb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0cb35eb8](https://forums.unrealengine.com/u/anonymous_user_0cb35eb8)\
**Post date:** [August 15, 2016, 3:44pm UTC](https://forums.unrealengine.com/t/foliage-stretching-infinitely-but-no-foliage-in-level/367004/5 "2016-08-15T15:44:57Z")

</div>

Thank you for the reply. However, scheduling constraints are really prohibitive of going that route, as we need to deliver at the end of the week, and upgrading the engine version mere days before ship seems exceptionally risky. Are there any alternatives to remove what we’re seeing, even if it involves removing assets in the project?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [August 15, 2016, 3:57pm UTC](https://forums.unrealengine.com/t/foliage-stretching-infinitely-but-no-foliage-in-level/367004/6 "2016-08-15T15:57:08Z")

</div>

There were no steps in the original UDN ticket or in the UDN post that indicated removing the asset would get rid of the issue. It’s possible for you to try, but I don’t have a test project to see this reproduced and test anything with, so I cannot guarantee that will fix it.

If you’re using source you can make the tweaks locally by adding the following to the HierarchicalInstancedStaticMesh.cpp:

```
		UnbuiltInstanceBoundsList.Empty();
		BuiltInstanceBounds.Init();

```

This would be added around line 2200 in the PostBuildStats() function below the else check for RemovedInstances.Empty() line 2209.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0cb35eb8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0cb35eb8](https://forums.unrealengine.com/u/anonymous_user_0cb35eb8)\
**Post date:** [August 15, 2016, 4:18pm UTC](https://forums.unrealengine.com/t/foliage-stretching-infinitely-but-no-foliage-in-level/367004/7 "2016-08-15T16:18:41Z")

</div>

Awesome, thank you!
