+ issue #0002525: Line color of shapes are always black
This commit is contained in:
parent
4eada9a4f0
commit
7e01d0128b
|
@ -350,12 +350,14 @@ void ViewProviderPartExt::onChanged(const App::Property* prop)
|
|||
pcLineMaterial->diffuseColor.setValue(c.r,c.g,c.b);
|
||||
if (c != LineMaterial.getValue().diffuseColor)
|
||||
LineMaterial.setDiffuseColor(c);
|
||||
LineColorArray.setValue(LineColor.getValue());
|
||||
}
|
||||
else if (prop == &PointColor) {
|
||||
const App::Color& c = PointColor.getValue();
|
||||
pcPointMaterial->diffuseColor.setValue(c.r,c.g,c.b);
|
||||
if (c != PointMaterial.getValue().diffuseColor)
|
||||
PointMaterial.setDiffuseColor(c);
|
||||
PointColorArray.setValue(PointColor.getValue());
|
||||
}
|
||||
else if (prop == &LineMaterial) {
|
||||
const App::Material& Mat = LineMaterial.getValue();
|
||||
|
|
Loading…
Reference in New Issue
Block a user