mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 20:43:04 +00:00
fix for situation when LOD child is located in different render level
This commit is contained in:
parent
d872f163ac
commit
98bd42cf97
1 changed files with 5 additions and 2 deletions
|
@ -60,9 +60,12 @@ namespace SanAndreasUnity.Behaviours.World
|
||||||
|
|
||||||
if (_canLoad && Instance.LodInstance != null)
|
if (_canLoad && Instance.LodInstance != null)
|
||||||
{
|
{
|
||||||
LodChild = dict[Instance.LodInstance];
|
if (dict.TryGetValue(Instance.LodInstance, out StaticGeometry dictValue))
|
||||||
|
{
|
||||||
|
LodChild = dictValue;
|
||||||
LodChild.LodParent = this;
|
LodChild.LodParent = this;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_isVisible = false;
|
_isVisible = false;
|
||||||
gameObject.SetActive(false);
|
gameObject.SetActive(false);
|
||||||
|
|
Loading…
Reference in a new issue