fixes 0003611: Linear pattern: 'Select reference' does near to nothing
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user