+ fix whitespace, fix notification of changed property in view provider
This commit is contained in:
parent
337a84328d
commit
d3281a66eb
|
@ -420,13 +420,13 @@ void ViewProviderPartExt::onChanged(const App::Property* prop)
|
|||
}
|
||||
else if (prop == &DrawStyle) {
|
||||
if (DrawStyle.getValue() == 0)
|
||||
pcLineStyle->linePattern = 0xffff;
|
||||
pcLineStyle->linePattern = 0xffff;
|
||||
else if (DrawStyle.getValue() == 1)
|
||||
pcLineStyle->linePattern = 0xf00f;
|
||||
pcLineStyle->linePattern = 0xf00f;
|
||||
else if (DrawStyle.getValue() == 2)
|
||||
pcLineStyle->linePattern = 0x0f0f;
|
||||
pcLineStyle->linePattern = 0x0f0f;
|
||||
else
|
||||
pcLineStyle->linePattern = 0xff88;
|
||||
pcLineStyle->linePattern = 0xff88;
|
||||
}
|
||||
else {
|
||||
// if the object was invisible and has been changed, recreate the visual
|
||||
|
@ -435,9 +435,9 @@ void ViewProviderPartExt::onChanged(const App::Property* prop)
|
|||
// The material has to be checked again (#0001736)
|
||||
onChanged(&DiffuseColor);
|
||||
}
|
||||
|
||||
ViewProviderGeometryObject::onChanged(prop);
|
||||
}
|
||||
|
||||
ViewProviderGeometryObject::onChanged(prop);
|
||||
}
|
||||
|
||||
void ViewProviderPartExt::attach(App::DocumentObject *pcFeat)
|
||||
|
|
Loading…
Reference in New Issue
Block a user