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:
@@ -117,7 +117,7 @@ void ViewProviderFace::attach(App::DocumentObject* obj)
|
||||
|
||||
SoBaseColor* basecol = new SoBaseColor;
|
||||
if (mesh) {
|
||||
App::Color col = mesh->ShapeAppearance.getDiffuseColor();
|
||||
Base::Color col = mesh->ShapeAppearance.getDiffuseColor();
|
||||
basecol->rgb.setValue(col.r, col.g, col.b);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user