mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-27 14:30:17 +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,8 +60,11 @@ 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.LodParent = this;
|
{
|
||||||
|
LodChild = dictValue;
|
||||||
|
LodChild.LodParent = this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_isVisible = false;
|
_isVisible = false;
|
||||||
|
|
Loading…
Reference in a new issue