[TD]fix Rotation not applied

This commit is contained in:
Wanderer Fan
2022-06-01 19:50:47 -04:00
committed by WandererFan
parent 78c22e33de
commit 9194d5c596
3 changed files with 2 additions and 9 deletions

View File

@@ -105,6 +105,7 @@ App::DocumentObjectExecReturn *DrawView::execute(void)
handleXYLock();
//should not be necessary to purgeTouched here, but it prevents a superfluous feature recompute
purgeTouched(); //this should not be necessary!
requestPaint();
return App::DocumentObject::execute();
}

View File

@@ -409,7 +409,7 @@ QPainterPath QGIViewPart::geomToPainterPath(BaseGeomPtr baseGeom, double rot)
void QGIViewPart::updateView(bool update)
{
// Base::Console().Message("QGIVP::updateView()\n");
// Base::Console().Message("QGIVP::updateView() - %s\n", getViewObject()->getNameInDocument());
auto viewPart( dynamic_cast<TechDraw::DrawViewPart *>(getViewObject()) );
if( viewPart == nullptr ) {
return;

View File

@@ -214,14 +214,6 @@ void ViewProviderDrawingView::finishRestoring()
void ViewProviderDrawingView::updateData(const App::Property* prop)
{
//redrawn the whole view on Rotation change
if (prop == &(getViewObject()->Rotation)) {
QGIView* qgiv = getQView();
if (qgiv) {
qgiv->updateView(true);
}
}
//only move the view on X,Y change
if (prop == &(getViewObject()->X) ||
prop == &(getViewObject()->Y) ){