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

This commit is contained in:
Unknown authored and Rebecca Cox committed 2017-11-23 15:20:14 +01:00
1 parent 3983aecd2e
commit 17cb520879
1 file changed
+7 -1
@@ -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)
{