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:
@@ -387,7 +387,7 @@ void ViewProviderPath::onChanged(const App::Property* prop)
|
||||
}
|
||||
else if (prop == &NormalColor) {
|
||||
if (!colorindex.empty() && coordStart >= 0 && coordStart < (int)colorindex.size()) {
|
||||
const App::Color& c = NormalColor.getValue();
|
||||
const Base::Color& c = NormalColor.getValue();
|
||||
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath(
|
||||
"User parameter:BaseApp/Preferences/Mod/CAM");
|
||||
unsigned long rcol =
|
||||
@@ -429,7 +429,7 @@ void ViewProviderPath::onChanged(const App::Property* prop)
|
||||
}
|
||||
}
|
||||
else if (prop == &MarkerColor) {
|
||||
const App::Color& c = MarkerColor.getValue();
|
||||
const Base::Color& c = MarkerColor.getValue();
|
||||
pcMarkerColor->rgb.setValue(c.r, c.g, c.b);
|
||||
}
|
||||
else if (prop == &ShowNodes) {
|
||||
|
||||
Reference in New Issue
Block a user