Part: if boolean/compound object has set transparency then override the values of the input shape
This commit is contained in:
@@ -130,6 +130,12 @@ void ViewProviderBoolean::updateData(const App::Property* prop)
|
||||
applyColor(hist[1], colTool, colBool);
|
||||
}
|
||||
|
||||
// If the view provider has set a transparency then override the values
|
||||
// of the input shapes
|
||||
if (Transparency.getValue() > 0) {
|
||||
applyTransparency(Transparency.getValue(), colBool);
|
||||
}
|
||||
|
||||
this->DiffuseColor.setValues(colBool);
|
||||
}
|
||||
}
|
||||
@@ -218,6 +224,12 @@ void ViewProviderMultiFuse::updateData(const App::Property* prop)
|
||||
}
|
||||
}
|
||||
|
||||
// If the view provider has set a transparency then override the values
|
||||
// of the input shapes
|
||||
if (Transparency.getValue() > 0) {
|
||||
applyTransparency(Transparency.getValue(), colBool);
|
||||
}
|
||||
|
||||
this->DiffuseColor.setValues(colBool);
|
||||
}
|
||||
else if (prop->getTypeId().isDerivedFrom(App::PropertyLinkList::getClassTypeId())) {
|
||||
@@ -349,6 +361,12 @@ void ViewProviderMultiCommon::updateData(const App::Property* prop)
|
||||
}
|
||||
}
|
||||
|
||||
// If the view provider has set a transparency then override the values
|
||||
// of the input shapes
|
||||
if (Transparency.getValue() > 0) {
|
||||
applyTransparency(Transparency.getValue(), colBool);
|
||||
}
|
||||
|
||||
this->DiffuseColor.setValues(colBool);
|
||||
}
|
||||
else if (prop->getTypeId().isDerivedFrom(App::PropertyLinkList::getClassTypeId())) {
|
||||
|
||||
@@ -125,6 +125,12 @@ void ViewProviderCompound::updateData(const App::Property* prop)
|
||||
}
|
||||
}
|
||||
|
||||
// If the view provider has set a transparency then override the values
|
||||
// of the input shapes
|
||||
if (Transparency.getValue() > 0) {
|
||||
applyTransparency(Transparency.getValue(), compCol);
|
||||
}
|
||||
|
||||
this->DiffuseColor.setValues(compCol);
|
||||
}
|
||||
else if (prop->getTypeId().isDerivedFrom(App::PropertyLinkList::getClassTypeId())) {
|
||||
|
||||
Reference in New Issue
Block a user