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:
@@ -368,9 +368,9 @@ void FaceAppearances::onSelectionChanged(const Gui::SelectionChanges& msg)
|
||||
if (docname == msg.pDocName && objname == msg.pObjectName) {
|
||||
int index = std::atoi(msg.pSubName + 4) - 1;
|
||||
d->index.insert(index);
|
||||
const App::Color& faceColor = d->perface[index].diffuseColor;
|
||||
const Base::Color& faceColor = d->perface[index].diffuseColor;
|
||||
QColor color;
|
||||
// alpha of App::Color is contrary to the one of QColor
|
||||
// alpha of Base::Color is contrary to the one of QColor
|
||||
color.setRgbF(faceColor.r, faceColor.g, faceColor.b, (1.0 - faceColor.a));
|
||||
selection_changed = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user