From 1483cc023f4368f62823e275cda95d7bb2222ad8 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 13 Oct 2021 14:28:06 +0200 Subject: [PATCH] Import: [skip ci] consistent use of curly braces --- src/Mod/Import/Gui/AppImportGuiPy.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Import/Gui/AppImportGuiPy.cpp b/src/Mod/Import/Gui/AppImportGuiPy.cpp index 72e5de3417..774c40e2f9 100644 --- a/src/Mod/Import/Gui/AppImportGuiPy.cpp +++ b/src/Mod/Import/Gui/AppImportGuiPy.cpp @@ -325,8 +325,10 @@ private: if(colors.size() == 1) { vp->ShapeColor.setValue(colors.front()); vp->Transparency.setValue(100 * colors.front().a); - } else + } + else { vp->DiffuseColor.setValues(colors); + } } virtual void applyEdgeColors(Part::Feature* part, const std::vector& colors) override { auto vp = dynamic_cast(Gui::Application::Instance->getViewProvider(part));