Skip to content

Commit

Permalink
Lock constraint in always available when sketch is open
Browse files Browse the repository at this point in the history
Earlier it was available only when a selection is made
  • Loading branch information
AjinkyaDahale authored and wwmayer committed Jan 4, 2017
1 parent 1230f49 commit 670e59e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Sketcher/Gui/CommandConstraints.cpp
Expand Up @@ -67,6 +67,8 @@ ConstraintCreationMode constraintCreationMode=Driving;

void ActivateHandler(Gui::Document *doc,DrawSketchHandler *handler);

bool isCreateGeoActive(Gui::Document *doc);

bool isCreateConstraintActive(Gui::Document *doc)
{
if (doc) {
Expand Down Expand Up @@ -1197,7 +1199,8 @@ void CmdSketcherConstrainLock::updateAction(int mode)

bool CmdSketcherConstrainLock::isActive(void)
{
return isCreateConstraintActive( getActiveGuiDocument() );
// return isCreateConstraintActive( getActiveGuiDocument() );
return isCreateGeoActive( getActiveGuiDocument() );
}


Expand Down

0 comments on commit 670e59e

Please sign in to comment.