Gui: Prohibit dragging using LMB in sketch mode for OpenSCAD style

This commit is contained in:
Rexbas
2023-12-29 10:54:37 +01:00
committed by WandererFan
parent 4e22766a26
commit 317e8388ea

View File

@@ -193,7 +193,7 @@ SbBool OpenSCADNavigationStyle::processSoEvent(const SoEvent * const ev)
if (type.isDerivedFrom(SoLocation2Event::getClassTypeId())) {
this->lockrecenter = true;
const auto event = (const SoLocation2Event *) ev;
if (curmode == NavigationStyle::SELECTION) {
if (!viewer->isEditing() && curmode == NavigationStyle::SELECTION) {
newmode = NavigationStyle::DRAGGING;
saveCursorPosition(ev);
this->centerTime = ev->getTime();