+ allow to always run macros, fix disappearing grid in sketcher
This commit is contained in:
parent
0874bfac75
commit
c212e75fcc
|
@ -676,6 +676,7 @@ MacroCommand::MacroCommand(const char* name)
|
|||
#endif
|
||||
{
|
||||
sGroup = QT_TR_NOOP("Macros");
|
||||
eType = 0;
|
||||
}
|
||||
|
||||
void MacroCommand::activated(int iMsg)
|
||||
|
|
|
@ -198,8 +198,8 @@ void ViewProvider2DObject::updateData(const App::Property* prop)
|
|||
|
||||
if (prop->getTypeId() == Part::PropertyPartShape::getClassTypeId()) {
|
||||
Base::BoundBox3d bbox = static_cast<const Part::PropertyPartShape*>(prop)->getBoundingBox();
|
||||
GridRoot->removeAllChildren();
|
||||
if (!bbox.IsValid()) return;
|
||||
GridRoot->removeAllChildren();
|
||||
Base::Placement place = static_cast<const Part::PropertyPartShape*>(prop)->getComplexData()->getPlacement();
|
||||
place.invert();
|
||||
Base::ViewProjMatrix proj(place.toMatrix());
|
||||
|
|
|
@ -287,7 +287,7 @@ void TaskPadParameters::onModeChanged(int index)
|
|||
case 0:
|
||||
pcPad->Type.setValue("Length");
|
||||
// Avoid error message
|
||||
if (ui->lengthEdit->getQuantity() < Precision::Confusion())
|
||||
if (ui->lengthEdit->getQuantity().getValue() < Precision::Confusion())
|
||||
ui->lengthEdit->setValue(5.0);
|
||||
break;
|
||||
case 1: pcPad->Type.setValue("UpToLast"); break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user