refactoring

This commit is contained in:
Nick Fisher
2025-03-22 10:49:24 +08:00
parent a67f42f0de
commit 0cbbc058e0
22 changed files with 675 additions and 463 deletions

View File

@@ -117,6 +117,9 @@ namespace thermion
for(int i = 0; i < getChildEntityCount(); i++) {
auto entity = getChildEntities()[i];
auto nameInstance = _ncm->getInstance(entity);
if(!nameInstance.isValid()) {
continue;
}
auto entityName = _ncm->getName(nameInstance);
if (strcmp(entityName, name) == 0) {