Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sculpt_paint.c
| Show First 20 Lines • Show All 779 Lines • ▼ Show 20 Lines | static void rna_def_sculpt(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Sculpt_ShowMask_update"); | RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Sculpt_ShowMask_update"); | ||||
| prop = RNA_def_property(srna, "show_face_sets", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_face_sets", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "flags", SCULPT_HIDE_FACE_SETS); | RNA_def_property_boolean_negative_sdna(prop, NULL, "flags", SCULPT_HIDE_FACE_SETS); | ||||
| RNA_def_property_ui_text(prop, "Show Face Sets", "Show Face Sets as overlay on object"); | RNA_def_property_ui_text(prop, "Show Face Sets", "Show Face Sets as overlay on object"); | ||||
| RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE); | RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Sculpt_ShowMask_update"); | RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Sculpt_ShowMask_update"); | ||||
| prop = RNA_def_property(srna, "use_sculpt_transform_pivot_only", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", SCULPT_TRANSFORM_PIVOT_ONLY); | |||||
| RNA_def_property_ui_text( | |||||
| prop, "Transform Pivot Only", "Transform only the pivot without affecting the geometry"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | |||||
| prop = RNA_def_property(srna, "detail_size", PROP_FLOAT, PROP_PIXEL); | prop = RNA_def_property(srna, "detail_size", PROP_FLOAT, PROP_PIXEL); | ||||
| RNA_def_property_ui_range(prop, 0.5, 40.0, 10, 2); | RNA_def_property_ui_range(prop, 0.5, 40.0, 10, 2); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Detail Size", "Maximum edge length for dynamic topology sculpting (in pixels)"); | prop, "Detail Size", "Maximum edge length for dynamic topology sculpting (in pixels)"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | ||||
| prop = RNA_def_property(srna, "detail_percent", PROP_FLOAT, PROP_PERCENTAGE); | prop = RNA_def_property(srna, "detail_percent", PROP_FLOAT, PROP_PERCENTAGE); | ||||
| RNA_def_property_ui_range(prop, 0.5, 100.0, 10, 2); | RNA_def_property_ui_range(prop, 0.5, 100.0, 10, 2); | ||||
| ▲ Show 20 Lines • Show All 724 Lines • Show Last 20 Lines | |||||