Lock constraint in always available when sketch is open
Earlier it was available only when a selection is made
This commit is contained in:
parent
1230f493d5
commit
670e59eae7
|
@ -67,6 +67,8 @@ ConstraintCreationMode constraintCreationMode=Driving;
|
||||||
|
|
||||||
void ActivateHandler(Gui::Document *doc,DrawSketchHandler *handler);
|
void ActivateHandler(Gui::Document *doc,DrawSketchHandler *handler);
|
||||||
|
|
||||||
|
bool isCreateGeoActive(Gui::Document *doc);
|
||||||
|
|
||||||
bool isCreateConstraintActive(Gui::Document *doc)
|
bool isCreateConstraintActive(Gui::Document *doc)
|
||||||
{
|
{
|
||||||
if (doc) {
|
if (doc) {
|
||||||
|
@ -1197,7 +1199,8 @@ void CmdSketcherConstrainLock::updateAction(int mode)
|
||||||
|
|
||||||
bool CmdSketcherConstrainLock::isActive(void)
|
bool CmdSketcherConstrainLock::isActive(void)
|
||||||
{
|
{
|
||||||
return isCreateConstraintActive( getActiveGuiDocument() );
|
// return isCreateConstraintActive( getActiveGuiDocument() );
|
||||||
|
return isCreateGeoActive( getActiveGuiDocument() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user