Cosmetic CL for Section and Detail

This commit is contained in:
wandererfan
2019-06-05 16:03:57 -04:00
committed by WandererFan
parent 9f3a61aec5
commit 5eb7145d97
10 changed files with 119 additions and 63 deletions

View File

@@ -144,20 +144,22 @@ void QGIViewSection::drawSectionFace()
void QGIViewSection::updateView(bool update)
{
Q_UNUSED(update);
auto viewPart( dynamic_cast<TechDraw::DrawViewSection *>(getViewObject()) );
if( viewPart == nullptr ) {
return;
}
if(update ||
viewPart->SectionNormal.isTouched() ||
viewPart->SectionOrigin.isTouched()) {
QGIViewPart::updateView(true);
drawSectionFace();
} else {
QGIViewPart::updateView();
drawSectionFace();
}
// if(update ||
// viewPart->SectionNormal.isTouched() ||
// viewPart->SectionOrigin.isTouched()) {
//// QGIViewPart::updateView(true);
//// drawSectionFace();
// } else {
//// QGIViewPart::updateView();
//// drawSectionFace();
// }
draw();
}
void QGIViewSection::drawSectionLine(TechDraw::DrawViewSection* s, bool b)