ulf.schroeter Posted November 14, 2010 Share Posted November 14, 2010 Problem WidgetEditLine with attached WidgetH/VSlider shows invalid value output in case of large values (e.g. >10000.0). This especially happens for large float/double parameters in property dialogs (e.g. for assigning large world coordinates as node properties). Possible Cause Most probably int/float value range overflow in WidgetEditLine/H/VSlider when calculating new value based on slider position for properties with very large min/max range (e.g. double property with min=-1000000000.0/max=1000000000.0). Possible Fix Usage of double precision for intermediate result calulations within WidgetEditLine/H/VSlider. Alternative/Additional proposal Optional no value slider in case of large min/max property parameter value range. In case of large value ranges use of slider is most of the time not very helpful. Direct manual value entry (e.g. of exact large coordinates) seems to be more appropriate in these cases. Also current edit line space is too small for larger property values. -> Optional suppression of slider attach on GUI via something like class Property { .... int setParameterSliderNone(int num) int getParameterSliderNone(int num) .... } Link to comment
Recommended Posts