From 7e69c6699db1876d196222dd0d1993fcd85e9e8a Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Mon, 10 Apr 2017 21:53:14 +0200 Subject: [PATCH] Part Design: Keep body transparency when adding a new feature ============================================================= Prior this commit, if a body has transparency (let's say 55%) and a new feature is added, the transparency is lost until you update it again in the body. This prevents to actually see through while editing the feature (e.g. while setting the length of a pad) and is very annoying as the user is required to go back to the body properties, where the old value (e.g. 55%) would still be there and change it to another value (56%) to effect it. --- src/Mod/PartDesign/Gui/Command.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mod/PartDesign/Gui/Command.cpp b/src/Mod/PartDesign/Gui/Command.cpp index 2c13898ecb..11758cda3a 100644 --- a/src/Mod/PartDesign/Gui/Command.cpp +++ b/src/Mod/PartDesign/Gui/Command.cpp @@ -672,6 +672,7 @@ void finishFeature(const Gui::Command* cmd, const std::string& FeatName, cmd->copyVisual(FeatName.c_str(), "ShapeColor", pcActiveBody->getNameInDocument()); cmd->copyVisual(FeatName.c_str(), "LineColor", pcActiveBody->getNameInDocument()); cmd->copyVisual(FeatName.c_str(), "PointColor", pcActiveBody->getNameInDocument()); + cmd->copyVisual(FeatName.c_str(), "Transparency", pcActiveBody->getNameInDocument()); } }