PLANE_SIZE);
Config_PropManager::registerProp("Sketch planes", "planes_thickness", "Thickness",
Config_Prop::Integer, SKETCH_WIDTH);
+ Config_PropManager::registerProp("Sketch planes", "rotate_to_plane", "Rotate to plane when selected",
+ Config_Prop::Boolean, "false");
}
void PartSet_Module::connectToPropertyPanel(ModuleBase_ModelWidget* theWidget, const bool isToConnect)
QGroupBox* aViewBox = new QGroupBox(tr("Sketcher plane"), this);
QVBoxLayout* aViewLayout = new QVBoxLayout(aViewBox);
- myViewInverted = new QCheckBox(tr("Inverted"), aViewBox);
+ myViewInverted = new QCheckBox(tr("Reversed"), aViewBox);
aViewLayout->addWidget(myViewInverted);
QPushButton* aSetViewBtn = new QPushButton(QIcon(":icons/plane_view.png"), tr("Set plane view"), aViewBox);
// Rotate view if the sketcher plane is selected only from preview planes
// Preview planes are created only if there is no any shape
- if (myYZPlane.get())
+ bool aRotate = Config_PropManager::boolean("Sketch planes", "rotate_to_plane", "false");
+ if (aRotate)
myWorkshop->viewer()->setViewProjection(aXYZ.X(), aXYZ.Y(), aXYZ.Z(), aTwist);
}
// 3. Clear text in the label