Cleanup: number literals

This commit is contained in:
Campbell Barton 2021-03-04 16:55:50 +11:00
parent 24f0807550
commit d10700a3ac
3 changed files with 3 additions and 3 deletions

View File

@ -377,7 +377,7 @@ int BLI_exists(const char *path)
struct stat st;
BLI_assert(!BLI_path_is_rel(path));
if (stat(path, &st)) {
return (0);
return 0;
}
#endif
return (st.st_mode);

View File

@ -131,7 +131,7 @@ void GPENCIL_OT_stroke_enter_editcurve_mode(wmOperatorType *ot)
"Error Threshold",
"Threshold on the maximum deviation from the actual stroke",
FLT_MIN,
10.f);
10.0f);
RNA_def_property_ui_range(prop, FLT_MIN, 10.0f, 0.1f, 5);
}

View File

@ -291,7 +291,7 @@ void WM_operator_properties_select_random(wmOperatorType *ot)
1.0f,
"Ratio",
"Portion of items to select randomly",
0.f,
0.0f,
1.0f);
RNA_def_int(ot->srna,
"seed",