Keep faces colors on boolean operations
This commit is contained in:
parent
20fcef29c7
commit
f2b4f5c18e
|
@ -124,10 +124,20 @@ void ViewProviderBoolean::updateData(const App::Property* prop)
|
|||
applyColor(hist[0], colBase, colBool);
|
||||
setColor = true;
|
||||
}
|
||||
else if (!colBase.empty() && colBase[0] != this->ShapeColor.getValue()) {
|
||||
colBase.resize(baseMap.Extent(), colBase[0]);
|
||||
applyColor(hist[0], colBase, colBool);
|
||||
setColor = true;
|
||||
}
|
||||
if (colTool.size() == toolMap.Extent()) {
|
||||
applyColor(hist[1], colTool, colBool);
|
||||
setColor = true;
|
||||
}
|
||||
else if (!colTool.empty() && colTool[0] != this->ShapeColor.getValue()) {
|
||||
colTool.resize(toolMap.Extent(), colTool[0]);
|
||||
applyColor(hist[1], colTool, colBool);
|
||||
setColor = true;
|
||||
}
|
||||
if (setColor)
|
||||
this->DiffuseColor.setValues(colBool);
|
||||
}
|
||||
|
@ -187,6 +197,11 @@ void ViewProviderMultiFuse::updateData(const App::Property* prop)
|
|||
applyColor(hist[index], colBase, colBool);
|
||||
setColor = true;
|
||||
}
|
||||
else if (!colBase.empty() && colBase[0] != this->ShapeColor.getValue()) {
|
||||
colBase.resize(baseMap.Extent(), colBase[0]);
|
||||
applyColor(hist[index], colBase, colBool);
|
||||
setColor = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (setColor)
|
||||
|
@ -248,6 +263,11 @@ void ViewProviderMultiCommon::updateData(const App::Property* prop)
|
|||
applyColor(hist[index], colBase, colBool);
|
||||
setColor = true;
|
||||
}
|
||||
else if (!colBase.empty() && colBase[0] != this->ShapeColor.getValue()) {
|
||||
colBase.resize(baseMap.Extent(), colBase[0]);
|
||||
applyColor(hist[index], colBase, colBool);
|
||||
setColor = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (setColor)
|
||||
|
|
Loading…
Reference in New Issue
Block a user