in createGeometry, all geometry entities to scene

This commit is contained in:
Nick Fisher
2024-11-30 13:58:33 +08:00
parent d53a8b20b8
commit d72ed58436

View File

@@ -840,8 +840,7 @@ namespace thermion
return std::nullptr_t();
}
entity = sceneAsset->getEntity();
_scene->addEntity(entity);
sceneAsset->addAllEntities(_scene);
auto *raw = sceneAsset.get();
_sceneAssets.push_back(std::move(sceneAsset));
return raw;