#2121 Intersections: Set dip angle range to [0, 180]

This commit is contained in:
Unknown 2017-11-23 10:59:52 +01:00 committed by Rebecca Cox
parent 3983aecd2e
commit 17cb520879

View File

@ -649,12 +649,18 @@ void RimIntersection::defineEditorAttribute(const caf::PdmFieldHandle* field, QS
caf::PdmUiDoubleSliderEditorAttribute* doubleSliderAttrib = dynamic_cast<caf::PdmUiDoubleSliderEditorAttribute*>(attribute);
if (doubleSliderAttrib)
{
if (field == &m_azimuthAngle || field == &m_dipAngle)
if (field == &m_azimuthAngle)
{
doubleSliderAttrib->m_minimum = 0;
doubleSliderAttrib->m_maximum = 360;
doubleSliderAttrib->m_sliderTickCount = 360;
}
else if (field == &m_dipAngle)
{
doubleSliderAttrib->m_minimum = 0;
doubleSliderAttrib->m_maximum = 180;
doubleSliderAttrib->m_sliderTickCount = 180;
}
}
else if (field == &inputPolyLineFromViewerEnabled)
{