From 6d40eface2de42137a6b1040ca2a0a3573235206 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Wed, 22 Dec 2021 14:00:53 -0600 Subject: [PATCH] importidf: Fix uninitialized variable --- src/importidf.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/importidf.cpp b/src/importidf.cpp index 8ca3432a..3cd501c8 100644 --- a/src/importidf.cpp +++ b/src/importidf.cpp @@ -332,8 +332,9 @@ bool LinkIDF(const Platform::Path &filename, EntityList *el, SMesh *m, SShell *s double board_thickness = 10.0; double scale = 1.0; //mm - bool topEntities, bottomEntities; - + bool topEntities = false; + bool bottomEntities = false; + Quaternion normal = Quaternion::From(Vector::From(1,0,0), Vector::From(0,1,0)); hEntity hnorm = newNormal(el, &entityCount, normal);