Merge branch 'main' into vp_texture_ext
This commit is contained in:
@@ -133,11 +133,12 @@ void ViewProviderGeometryObject::onChanged(const App::Property* prop)
|
||||
}
|
||||
else if (prop == &Transparency) {
|
||||
long value = toPercent(ShapeAppearance.getTransparency());
|
||||
float trans = fromPercent(Transparency.getValue());
|
||||
if (value != Transparency.getValue()) {
|
||||
float trans = fromPercent(Transparency.getValue());
|
||||
pcShapeMaterial->transparency = trans;
|
||||
ShapeAppearance.setTransparency(trans);
|
||||
}
|
||||
|
||||
pcShapeMaterial->transparency = trans;
|
||||
}
|
||||
else if (prop == &ShapeAppearance) {
|
||||
if (getObject() && getObject()->testStatus(App::ObjectStatus::TouchOnColorChange)) {
|
||||
|
||||
Reference in New Issue
Block a user