in createGeometry, all geometry entities to scene

This commit is contained in:
Nick Fisher committed 2025-01-07 08:25:48 +08:00
1 parent d53a8b20b8
commit d72ed58436
1 file changed
+1 -2
@@ -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;