Cleanup: comment length in interface
This commit is contained in:
@@ -508,7 +508,8 @@ int UI_icon_from_report_type(int type)
|
||||
/********************************** Misc **************************************/
|
||||
|
||||
/**
|
||||
* Returns the best "UI" precision for given floating value, so that e.g. 10.000001 rather gets drawn as '10'...
|
||||
* Returns the best "UI" precision for given floating value,
|
||||
* so that e.g. 10.000001 rather gets drawn as '10'...
|
||||
*/
|
||||
int UI_calc_float_precision(int prec, double value)
|
||||
{
|
||||
@@ -519,7 +520,8 @@ int UI_calc_float_precision(int prec, double value)
|
||||
BLI_assert(prec <= UI_PRECISION_FLOAT_MAX);
|
||||
BLI_assert(fabs(pow10_neg[prec] - pow(10, -prec)) < 1e-16);
|
||||
|
||||
/* check on the number of decimal places need to display the number, this is so 0.00001 is not displayed as 0.00,
|
||||
/* Check on the number of decimal places need to display the number,
|
||||
* this is so 0.00001 is not displayed as 0.00,
|
||||
* _but_, this is only for small values si 10.0001 will not get the same treatment.
|
||||
*/
|
||||
value = ABS(value);
|
||||
@@ -631,8 +633,10 @@ uiButStore *UI_butstore_create(uiBlock *block)
|
||||
void UI_butstore_free(uiBlock *block, uiButStore *bs_handle)
|
||||
{
|
||||
/* Workaround for button store being moved into new block,
|
||||
* which then can't use the previous buttons state ('ui_but_update_from_old_block' fails to find a match),
|
||||
* keeping the active button in the old block holding a reference to the button-state in the new block: see T49034.
|
||||
* which then can't use the previous buttons state
|
||||
* ('ui_but_update_from_old_block' fails to find a match),
|
||||
* keeping the active button in the old block holding a reference
|
||||
* to the button-state in the new block: see T49034.
|
||||
*
|
||||
* Ideally we would manage moving the 'uiButStore', keeping a correct state.
|
||||
* All things considered this is the most straightforward fix - Campbell.
|
||||
|
||||
Reference in New Issue
Block a user