Fix "still touched after recompute" and display

This commit is contained in:
WandererFan
2017-12-03 09:18:38 -05:00
committed by Yorik van Havre
parent 95cc7a900b
commit 5bc256d3f2
2 changed files with 2 additions and 3 deletions

View File

@@ -109,8 +109,7 @@ App::DocumentObjectExecReturn *DrawHatch::execute(void)
{
DrawViewPart* parent = getSourceView();
if (parent) {
parent->touch();
parent->recomputeFeature();
parent->requestPaint();
}
return App::DocumentObject::StdReturn;
}

View File

@@ -76,7 +76,7 @@ QGIFace::QGIFace(int index) :
m_segCount = 0;
setFillMode(NoFill);
isHatched(false);
setFlag(QGraphicsItem::ItemClipsChildrenToShape,false);
setFlag(QGraphicsItem::ItemClipsChildrenToShape,true);
//setStyle(Qt::NoPen); //don't draw face lines, just fill for debugging
setStyle(Qt::DashLine);