Skip to content

Commit

Permalink
Gui: Prohibit dragging using LMB in sketch mode for OpenSCAD style
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexbas committed Dec 29, 2023
1 parent 888dcb5 commit 0109292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/OpenSCADNavigationStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,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();
Expand Down

0 comments on commit 0109292

Please sign in to comment.