Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_operator_props.c
| Show First 20 Lines • Show All 278 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| /** | /** | ||||
| * Use for all select random operators. | * Use for all select random operators. | ||||
| * Adds properties: percent, seed, action. | * Adds properties: percent, seed, action. | ||||
| */ | */ | ||||
| void WM_operator_properties_select_random(wmOperatorType *ot) | void WM_operator_properties_select_random(wmOperatorType *ot) | ||||
| { | { | ||||
| RNA_def_float_percentage(ot->srna, | RNA_def_float_factor(ot->srna, | ||||
| "percent", | "ratio", | ||||
| 50.0f, | 0.5f, | ||||
| 0.0f, | 0.0f, | ||||
| 100.0f, | 1.0f, | ||||
| "Percent", | "Ratio", | ||||
| "Percentage of objects to select randomly", | "Portion of items to select randomly", | ||||
| 0.0f, | 0.f, | ||||
| 100.0f); | 1.0f); | ||||
| RNA_def_int(ot->srna, | RNA_def_int(ot->srna, | ||||
| "seed", | "seed", | ||||
| 0, | 0, | ||||
| 0, | 0, | ||||
| INT_MAX, | INT_MAX, | ||||
| "Random Seed", | "Random Seed", | ||||
| "Seed for the random number generator", | "Seed for the random number generator", | ||||
| 0, | 0, | ||||
| ▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines | |||||