mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-25 16:32:55 +08:00
Hide GTAV map project option now hides collision meshes, Occlusion ymaps added to main grid
This commit is contained in:
parent
77e9c0566f
commit
0d0a3d19d1
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user