Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_ops.c
| Show First 20 Lines • Show All 1,196 Lines • ▼ Show 20 Lines | static void SCULPT_OT_mask_from_cavity(wmOperatorType *ot) | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| RNA_def_enum(ot->srna, "mix_mode", mix_modes, AUTOMASK_BAKE_MIX, "Mode", "Mix mode"); | RNA_def_enum(ot->srna, "mix_mode", mix_modes, AUTOMASK_BAKE_MIX, "Mode", "Mix mode"); | ||||
| RNA_def_float(ot->srna, "mix_factor", 1.0f, 0.0f, 5.0f, "Mix Factor", "", 0.0f, 1.0f); | RNA_def_float(ot->srna, "mix_factor", 1.0f, 0.0f, 5.0f, "Mix Factor", "", 0.0f, 1.0f); | ||||
| RNA_def_boolean(ot->srna, | RNA_def_boolean(ot->srna, | ||||
| "use_automask_settings", | "use_automask_settings", | ||||
| false, | false, | ||||
| "Use Automask Settings", | "Automask Settings", | ||||
| "Use default settings from Options panel in sculpt mode"); | "Use default settings from Options panel in sculpt mode"); | ||||
| RNA_def_float(ot->srna, | RNA_def_float(ot->srna, | ||||
| "factor", | "factor", | ||||
| 0.5f, | 0.5f, | ||||
| 0.0f, | 0.0f, | ||||
| 5.0f, | 5.0f, | ||||
| "Cavity Factor", | "Factor", | ||||
| "The contrast of the cavity mask", | "The contrast of the cavity mask", | ||||
| 0.0f, | 0.0f, | ||||
| 1.0f); | 1.0f); | ||||
| RNA_def_int(ot->srna, | RNA_def_int(ot->srna, | ||||
| "blur_steps", | "blur_steps", | ||||
| 2, | 2, | ||||
| 0, | 0, | ||||
| 25, | 25, | ||||
| "Cavity Blur", | "Blur", | ||||
| "The number of times the cavity mask is blurred", | "The number of times the cavity mask is blurred", | ||||
| 0, | 0, | ||||
| 25); | 25); | ||||
| RNA_def_boolean(ot->srna, "use_curve", false, "Use Curve", ""); | RNA_def_boolean(ot->srna, "use_curve", false, "Custom Curve", ""); | ||||
| RNA_def_boolean(ot->srna, "invert", false, "Cavity (Inverted)", ""); | RNA_def_boolean(ot->srna, "invert", false, "Cavity (Inverted)", ""); | ||||
| } | } | ||||
| static int sculpt_reveal_all_exec(bContext *C, wmOperator *op) | static int sculpt_reveal_all_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Object *ob = CTX_data_active_object(C); | Object *ob = CTX_data_active_object(C); | ||||
| SculptSession *ss = ob->sculpt; | SculptSession *ss = ob->sculpt; | ||||
| ▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines | |||||