Sketcher: Force OVP visibility for offset and scale.
This commit is contained in:
@@ -51,7 +51,8 @@ class GuiExport EditableDatumLabel : public QObject
|
||||
public:
|
||||
enum class Function {
|
||||
Positioning,
|
||||
Dimensioning
|
||||
Dimensioning,
|
||||
Forced
|
||||
};
|
||||
|
||||
EditableDatumLabel(View3DInventorViewer* view, const Base::Placement& plc, SbColor color, bool autoDistance = false, bool avoidMouseCursor = false);
|
||||
|
||||
@@ -210,6 +210,10 @@ private:
|
||||
|
||||
bool isVisible(Gui::EditableDatumLabel* ovp) const
|
||||
{
|
||||
if (ovp->getFunction() == Gui::EditableDatumLabel::Function::Forced) {
|
||||
return true;
|
||||
}
|
||||
|
||||
switch (onViewParameterVisibility) {
|
||||
|
||||
case OnViewParameterVisibility::Hidden:
|
||||
|
||||
@@ -1177,7 +1177,7 @@ void DSHOffsetController::configureToolWidget()
|
||||
|
||||
onViewParameters[OnViewParameter::First]->setLabelType(
|
||||
Gui::SoDatumLabel::DISTANCE,
|
||||
Gui::EditableDatumLabel::Function::Dimensioning);
|
||||
Gui::EditableDatumLabel::Function::Forced);
|
||||
}
|
||||
|
||||
template<>
|
||||
|
||||
@@ -598,7 +598,7 @@ void DSHScaleController::configureToolWidget()
|
||||
onViewParameters[OnViewParameter::Second]->setLabelType(Gui::SoDatumLabel::DISTANCEY);
|
||||
onViewParameters[OnViewParameter::Third]->setLabelType(
|
||||
Gui::SoDatumLabel::DISTANCE,
|
||||
Gui::EditableDatumLabel::Function::Dimensioning);
|
||||
Gui::EditableDatumLabel::Function::Forced);
|
||||
}
|
||||
|
||||
template<>
|
||||
|
||||
Reference in New Issue
Block a user