if (!aView3d.IsNull()) {
aView3d->SetProj(theX, theY, theZ);
aView3d->SetTwist( theTwist );
- aView3d->FitAll(0.01, true);
+ aView3d->FitAll(0.01, false);
aView3d->SetZSize(0.);
if (aView3d->Depth() < 0.1)
aView3d->DepthFitAll();
#include "PartSet_WidgetSketchLabel.h"
#include "PartSet_Tools.h"
+#include "PartSet_Module.h"
#include "SketchPlugin_SketchEntity.h"
// Rotate view if the sketcher plane is selected only from preview planes
// Preview planes are created only if there is no any shape
bool aRotate = Config_PropManager::boolean("Sketch planes", "rotate_to_plane", "false");
- if (aRotate)
+ if (aRotate) {
myWorkshop->viewer()->setViewProjection(aXYZ.X(), aXYZ.Y(), aXYZ.Z(), aTwist);
+ PartSet_Module* aModule = dynamic_cast<PartSet_Module*>(myWorkshop->module());
+ if (aModule)
+ aModule->onViewTransformed();
+ }
}
// 3. Clear text in the label
myStackWidget->setCurrentIndex(1);
if (myViewInverted->isChecked())
aDir.Reverse();
myWorkshop->viewer()->setViewProjection(aDir.X(), aDir.Y(), aDir.Z(), 0.);
+ PartSet_Module* aModule = dynamic_cast<PartSet_Module*>(myWorkshop->module());
+ if (aModule)
+ aModule->onViewTransformed();
}
}
if (!aView3d.IsNull()) {
aView3d->SetProj(theX, theY, theZ);
aView3d->SetTwist( theTwist );
- aView3d->FitAll(0.01, true);
+ aView3d->FitAll(0.01, false);
aView3d->SetZSize(0.);
if (aView3d->Depth() < 0.1)
aView3d->DepthFitAll();