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:
@@ -125,8 +125,8 @@ int SoFCSelectionContext::merge(int status, SoFCSelectionContextBasePtr &output,
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool SoFCSelectionContextEx::setColors(
|
||||
const std::map<std::string,App::Color> &colors, const std::string &element) {
|
||||
std::map<int,App::Color> tmp;
|
||||
const std::map<std::string,Base::Color> &colors, const std::string &element) {
|
||||
std::map<int,Base::Color> tmp;
|
||||
auto it = colors.find("");
|
||||
if(it!=colors.end())
|
||||
tmp[-1] = it->second;
|
||||
@@ -149,7 +149,7 @@ bool SoFCSelectionContextEx::setColors(
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32_t SoFCSelectionContextEx::packColor(const App::Color &c, bool &hasTransparency) {
|
||||
uint32_t SoFCSelectionContextEx::packColor(const Base::Color &c, bool &hasTransparency) {
|
||||
float trans = std::max(trans0,c.a);
|
||||
if(trans>0)
|
||||
hasTransparency = true;
|
||||
|
||||
Reference in New Issue
Block a user