Jump to content

WidgetEditLine large value bug


photo

Recommended Posts

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).

 

post-82-093879600 1289728398_thumb.jpg

 

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) 
   .... 
}

 

post-82-042098600 1289728427_thumb.jpg

Link to comment
×
×
  • Create New...