This commit is contained in:
Daniel Ledda
2025-11-27 23:50:54 +01:00
parent a7d03deba6
commit e25004f59c
3 changed files with 5 additions and 8 deletions

View File

@@ -91,7 +91,8 @@ void removeEntity(Scene *s, uint32 entityHandle) {
if (parentNode != NULL) {
for (EachIn(parentNode->children, i)) {
if (parentNode->children.data[i] == entity->graphNodeHandle) {
ListRemove(&parentNode->children, i);
memcpy(parentNode->children.data + i, parentNode->children.data + i + 1, parentNode->children.length - i - 1);
//ListRemove(&parentNode->children, i);
graphNode->parentHandle = 0;
break;
}