fixes 0003611: Linear pattern: 'Select reference' does near to nothing

This commit is contained in:
wmayer
2018-09-25 11:07:43 +02:00
parent 2271280906
commit bbdb0ab323

View File

@@ -25,7 +25,7 @@
#ifndef _PreComp_
# include <QMessageBox>
# include <QAction>
# include <QAction>
# include <QTimer>
#endif
@@ -257,7 +257,10 @@ void TaskLinearPatternParameters::onSelectionChanged(const Gui::SelectionChanges
// Note: ReferenceSelection has already checked the selection for validity
if (selObj && (selectionMode == reference ||
selObj->isDerivedFrom(App::Line::getClassTypeId()))) {
selObj->isDerivedFrom(App::Line::getClassTypeId()) ||
selObj->isDerivedFrom(Part::Feature::getClassTypeId()) ||
selObj->isDerivedFrom(PartDesign::Line::getClassTypeId()) ||
selObj->isDerivedFrom(PartDesign::Plane::getClassTypeId()))) {
pcLinearPattern->Direction.setValue(selObj, directions);
recomputeFeature();