city_generator2

Generated conformal 3D meshes representing a city
git clone git://git.meso-star.fr/city_generator2.git
Log | Files | Refs | README | LICENSE

commit 5f7213ab7a326faa0adbbae867e9b083e83025d9
parent 054dfa535a1ce4c41d1613b540c7ad1aaeeefe5e
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Tue, 14 Jan 2025 15:53:17 +0100

BugFix

An error status was overwritten in an error path.

Diffstat:
Msrc/cg_city.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/cg_city.c b/src/cg_city.c @@ -719,6 +719,7 @@ city_cad_build(struct city* city) /* Call to build_cad failed (cad is NULL). * Any needed geometry must be created from here */ struct htable_building_iterator it, end; + res_T keep_res = tmp_res; ASSERT(cad == NULL); darray_geometries_clear(&current_cad); /* Help the user to close the hole in the ground: save it */ @@ -770,6 +771,7 @@ city_cad_build(struct city* city) logger_print(city->logger, LOG_ERROR, "Building '%s': stopped after %s.\n", str_cget(&building->name), buf); + tmp_res = keep_res; } } ERR1(tmp_res);