mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +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)
|
private void AddVertexByID(VertexID id)
|
||||||
{
|
{
|
||||||
ref var info = ref GetVertexInfo(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++;
|
_count++;
|
||||||
info.isContained = true;
|
info.isContained = true;
|
||||||
}
|
}
|
||||||
info.insertionIndex = _increment++;
|
|
||||||
}
|
}
|
||||||
public bool RemoveVertex(T vertex)
|
public bool RemoveVertex(T vertex)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user