Hide GTAV map project option now hides collision meshes, Occlusion ymaps added to main grid

This commit is contained in:
dexyfex 2018-01-02 08:26:56 +11:00
parent 77e9c0566f
commit 0d0a3d19d1
3 changed files with 16 additions and 1 deletions

View File

@ -5778,6 +5778,15 @@ namespace CodeWalker
}
public void GetVisibleCollisionMeshes(Camera camera, List<BoundsStoreItem> items)
{
//eventually will need to change this to use a list of Ybn's...
if (hidegtavmap)
{
items.Clear();
}
}
public void GetVisibleWaterQuads(Camera camera, List<WaterQuad> quads)
{
if (hidegtavmap)

View File

@ -362,13 +362,14 @@ namespace CodeWalker.World
break;
case 32:
occlnodes.Add(node);
//addtogrid = true;
addtogrid = true;
break;
case 1088:
grassnodes.Add(node);
addtogrid = true;
break;
default:
addtogrid = true;
break;
}

View File

@ -744,6 +744,11 @@ namespace CodeWalker
collisionitems.Clear();
space.GetVisibleBounds(camera, collisionmeshrange, collisionmeshlayers, collisionitems);
if (ProjectForm != null)
{
ProjectForm.GetVisibleCollisionMeshes(camera, collisionitems);
}
foreach (var item in collisionitems)
{
YbnFile ybn = gameFileCache.GetYbn(item.Name);