UI: Fix incorrect RNA percentage property definitions
In two cases the percentage property was actually used incorrectly, as pointed out in T82070. The range was [0, 1], but the properties were still displayed as percentages. There is a preference to control whether to display factors or percentages, so it usually doesn't make sense to manually define properties as percentages. Resolves T82070 Differential Revision: https://developer.blender.org/D9344
This commit is contained in:
@@ -505,15 +505,15 @@ void GRAPH_OT_decimate(wmOperatorType *ot)
|
||||
"Mode",
|
||||
"Which mode to use for decimation");
|
||||
|
||||
RNA_def_float_percentage(ot->srna,
|
||||
"remove_ratio",
|
||||
1.0f / 3.0f,
|
||||
0.0f,
|
||||
1.0f,
|
||||
"Remove",
|
||||
"The percentage of keyframes to remove",
|
||||
0.0f,
|
||||
1.0f);
|
||||
RNA_def_float_factor(ot->srna,
|
||||
"remove_ratio",
|
||||
1.0f / 3.0f,
|
||||
0.0f,
|
||||
1.0f,
|
||||
"Remove",
|
||||
"The ratio of remaining keyframes after the operation",
|
||||
0.0f,
|
||||
1.0f);
|
||||
RNA_def_float(ot->srna,
|
||||
"remove_error_margin",
|
||||
0.0f,
|
||||
|
||||
Reference in New Issue
Block a user