Base: Move App::Color to Base
Every basic data type is stored in Base module, color is standing out as one that does not. Moving it to Base opens possibilities to integrate it better with the rest of FreeCAD.
This commit is contained in:
@@ -58,8 +58,8 @@ bool ViewProviderPart::doubleClicked()
|
||||
}
|
||||
|
||||
void ViewProviderPart::applyColor(const Part::ShapeHistory& hist,
|
||||
const std::vector<App::Color>& colBase,
|
||||
std::vector<App::Color>& colBool)
|
||||
const std::vector<Base::Color>& colBase,
|
||||
std::vector<Base::Color>& colBool)
|
||||
{
|
||||
// apply color from modified faces
|
||||
for (const auto& jt : hist.shapeMap) {
|
||||
@@ -81,7 +81,7 @@ void ViewProviderPart::applyMaterial(const Part::ShapeHistory& hist,
|
||||
}
|
||||
}
|
||||
|
||||
void ViewProviderPart::applyTransparency(float transparency, std::vector<App::Color>& colors)
|
||||
void ViewProviderPart::applyTransparency(float transparency, std::vector<Base::Color>& colors)
|
||||
{
|
||||
if (transparency != 0.0) {
|
||||
// transparency has been set object-wide
|
||||
|
||||
Reference in New Issue
Block a user