Miscellaneous fixes
This commit is contained in:
parent
75dc92fd90
commit
106efeec02
|
@ -269,12 +269,12 @@ const std::set<QString> Line::getHint()
|
|||
return std::set<QString>();
|
||||
}
|
||||
|
||||
Base::Vector3d Line::getBasePoint()
|
||||
Base::Vector3d Line::getBasePoint() const
|
||||
{
|
||||
return Placement.getValue().getPosition();
|
||||
}
|
||||
|
||||
Base::Vector3d Line::getDirection()
|
||||
Base::Vector3d Line::getDirection() const
|
||||
{
|
||||
Base::Rotation rot = Placement.getValue().getRotation();
|
||||
Base::Vector3d dir;
|
||||
|
|
|
@ -47,8 +47,8 @@ public:
|
|||
static void initHints();
|
||||
const std::set<QString> getHint();
|
||||
|
||||
Base::Vector3d getBasePoint();
|
||||
Base::Vector3d getDirection();
|
||||
Base::Vector3d getBasePoint() const;
|
||||
Base::Vector3d getDirection() const;
|
||||
|
||||
protected:
|
||||
virtual void onChanged(const App::Property* prop);
|
||||
|
|
|
@ -333,6 +333,7 @@ void TaskLinearPatternParameters::onDirectionChanged(int num) {
|
|||
QString buf = QString::fromUtf8("Axis%1").arg(num-5);
|
||||
std::string str = buf.toStdString();
|
||||
pcLinearPattern->Direction.setValue(pcSketch, std::vector<std::string>(1,str));
|
||||
exitSelectionMode();
|
||||
}
|
||||
else if (num == ui->comboDirection->count() - 1) {
|
||||
// enter reference selection mode
|
||||
|
|
|
@ -259,6 +259,7 @@ void TaskMirroredParameters::onPlaneChanged(int num) {
|
|||
QString buf = QString::fromUtf8("Axis%1").arg(num-5);
|
||||
std::string str = buf.toStdString();
|
||||
pcMirrored->MirrorPlane.setValue(pcSketch, std::vector<std::string>(1,str));
|
||||
exitSelectionMode();
|
||||
}
|
||||
else if (num == ui->comboPlane->count() - 1) {
|
||||
// enter reference selection mode
|
||||
|
|
|
@ -96,9 +96,10 @@ void TaskSketchBasedParameters::onSelectReference(const bool pressed, const bool
|
|||
|
||||
if (pressed) {
|
||||
Gui::Document* doc = Gui::Application::Instance->activeDocument();
|
||||
if (doc && solid) {
|
||||
if (doc) {
|
||||
doc->setHide(pcSketchBased->getNameInDocument());
|
||||
doc->setShow(solid->getNameInDocument());
|
||||
if (solid)
|
||||
doc->setShow(solid->getNameInDocument());
|
||||
}
|
||||
Gui::Selection().clearSelection();
|
||||
Gui::Selection().addSelectionGate
|
||||
|
@ -106,9 +107,10 @@ void TaskSketchBasedParameters::onSelectReference(const bool pressed, const bool
|
|||
} else {
|
||||
Gui::Selection().rmvSelectionGate();
|
||||
Gui::Document* doc = Gui::Application::Instance->activeDocument();
|
||||
if (doc && solid) {
|
||||
if (doc) {
|
||||
doc->setShow(pcSketchBased->getNameInDocument());
|
||||
doc->setHide(solid->getNameInDocument());
|
||||
if (solid)
|
||||
doc->setHide(solid->getNameInDocument());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user