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.
This commit is contained in:
Abdullah Tahiri
2017-04-10 21:53:14 +02:00
committed by wmayer
parent 1529409de6
commit 7e69c6699d

View File

@@ -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());
}
}