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:
@@ -701,8 +701,8 @@ void ViewProviderFemPostObject::WriteColorData(bool ResetColorBarRange)
|
||||
m_matPlainEdges->transparency.setNum(numPts);
|
||||
float* transp = m_material->transparency.startEditing();
|
||||
float* edgeTransp = m_matPlainEdges->transparency.startEditing();
|
||||
App::Color c;
|
||||
App::Color cEdge = EdgeColor.getValue();
|
||||
Base::Color c;
|
||||
Base::Color cEdge = EdgeColor.getValue();
|
||||
for (int i = 0; i < numPts; i++) {
|
||||
|
||||
double value = 0;
|
||||
@@ -928,7 +928,7 @@ void ViewProviderFemPostObject::onChanged(const App::Property* prop)
|
||||
m_drawStyle->pointSize.setValue(PointSize.getValue());
|
||||
}
|
||||
else if (prop == &EdgeColor && setupPipeline()) {
|
||||
App::Color c = EdgeColor.getValue();
|
||||
Base::Color c = EdgeColor.getValue();
|
||||
SbColor* edgeColor = m_matPlainEdges->diffuseColor.startEditing();
|
||||
for (int i = 0; i < m_matPlainEdges->diffuseColor.getNum(); ++i) {
|
||||
edgeColor[i].setValue(c.r, c.g, c.b);
|
||||
|
||||
Reference in New Issue
Block a user