commit bf1c00320453de66497f03ef6a8dbad963b9c455
parent 262ab4ad71fc90644028e58ed554ebe61192f072
Author: Benjamin Piaud <benjamin.piaud@meso-star.com>
Date: Tue, 17 Jan 2023 14:50:56 +0100
Temporary bugfix to deal with bug from star-cpr for zero-offset
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/cg_construction_mode_1.c b/src/cg_construction_mode_1.c
@@ -120,7 +120,8 @@ build_wall
offset = e_insulation;
ERR(scpr_polygon_create_copy(NULL, pg, &pg_ext));
- ERR(scpr_offset_polygon(pg_ext, -offset, SCPR_JOIN_MITER));
+ /* TODO : temporary bugfix to deal with zero-offset*/
+ if (offset != 0) {ERR(scpr_offset_polygon(pg_ext, -offset, SCPR_JOIN_MITER));}
offset = e_wall + e_insulation;
ERR(scpr_polygon_create_copy(NULL, pg, &pg_int));