mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
fix
This commit is contained in:
parent
ea311afba2
commit
1cb8718c87
@ -158,12 +158,16 @@ namespace DCFApixels.DragonECS.Core
|
||||
private void AddVertexByID(VertexID id)
|
||||
{
|
||||
ref var info = ref GetVertexInfo(id);
|
||||
if (info.isContained == false || info.isLocked == false)
|
||||
|
||||
if (info.isContained == false && info.isLocked || info.isLocked == false)
|
||||
{
|
||||
info.insertionIndex = _increment++;
|
||||
}
|
||||
if (info.isContained == false)
|
||||
{
|
||||
_count++;
|
||||
info.isContained = true;
|
||||
}
|
||||
info.insertionIndex = _increment++;
|
||||
}
|
||||
public bool RemoveVertex(T vertex)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user