diff --git a/src/Gui/DlgSettingsNavigation.cpp b/src/Gui/DlgSettingsNavigation.cpp index 2b148cc1ce..bd5df7e8ca 100644 --- a/src/Gui/DlgSettingsNavigation.cpp +++ b/src/Gui/DlgSettingsNavigation.cpp @@ -86,6 +86,7 @@ void DlgSettingsNavigation::saveSettings() ui->checkBoxZoomAtCursor->onSave(); ui->checkBoxInvertZoom->onSave(); ui->checkBoxDisableTilt->onSave(); + ui->checkBoxShowRotationCenter->onSave(); ui->spinBoxZoomStep->onSave(); ui->checkBoxUseAutoRotation->onSave(); ui->qspinNewDocScale->onSave(); @@ -122,6 +123,7 @@ void DlgSettingsNavigation::loadSettings() ui->checkBoxZoomAtCursor->onRestore(); ui->checkBoxInvertZoom->onRestore(); ui->checkBoxDisableTilt->onRestore(); + ui->checkBoxShowRotationCenter->onRestore(); ui->spinBoxZoomStep->onRestore(); ui->checkBoxUseAutoRotation->onRestore(); ui->qspinNewDocScale->onRestore(); diff --git a/src/Gui/DlgSettingsNavigation.ui b/src/Gui/DlgSettingsNavigation.ui index 711cc07975..c2c33a3370 100644 --- a/src/Gui/DlgSettingsNavigation.ui +++ b/src/Gui/DlgSettingsNavigation.ui @@ -615,6 +615,25 @@ Mouse tilting is not disabled by this setting. + + + + Show the rotation center when dragging. + + + Enable rotation center indication + + + true + + + ShowRotationCenter + + + View + + + diff --git a/src/Gui/PreferencePackTemplates/View.cfg b/src/Gui/PreferencePackTemplates/View.cfg index a0ef5b960d..6ad815c14c 100644 --- a/src/Gui/PreferencePackTemplates/View.cfg +++ b/src/Gui/PreferencePackTemplates/View.cfg @@ -18,6 +18,7 @@ + Gui::CADNavigationStyle diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index 4eac801515..08592bc343 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -1278,7 +1278,11 @@ void View3DInventorViewer::showRotationCenter(bool show) SoNode* scene = getSceneGraph(); auto sep = static_cast(scene); - if (show) { + bool showEnabled = App::GetApplication() + .GetParameterGroupByPath("User parameter:BaseApp/Preferences/View") + ->GetBool("ShowRotationCenter", true); + + if (show && showEnabled) { SbBool found; SbVec3f center = navigation->getRotationCenter(found);