mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 00:43:00 +08:00
ProjectForm: added grass batches tree nodes to
This commit is contained in:
parent
9a78b3cd13
commit
a3050fddd6
@ -1300,6 +1300,19 @@ namespace CodeWalker
|
||||
ccgnode.Tag = cargen;
|
||||
}
|
||||
}
|
||||
if ((ymap.GrassInstanceBatches != null) && (ymap.GrassInstanceBatches.Length > 0))
|
||||
{
|
||||
var grassbatchesnodes = node.Nodes.Add("Grass Batches (" + ymap.GrassInstanceBatches.Length.ToString() + ")");
|
||||
grassbatchesnodes.Name = "GrassBatches";
|
||||
grassbatchesnodes.Tag = ymap;
|
||||
var grassbatches = ymap.GrassInstanceBatches;
|
||||
for (int i = 0; i < grassbatches.Length; i++)
|
||||
{
|
||||
var batch = grassbatches[i];
|
||||
var gbnode = grassbatchesnodes.Nodes.Add(batch.ToString());
|
||||
gbnode.Tag = batch;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user