Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_sculpt_paint.c
| Show First 20 Lines • Show All 666 Lines • ▼ Show 20 Lines | static void rna_def_vertex_paint(BlenderRNA *brna) | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "VertexPaint", "Paint"); | srna = RNA_def_struct(brna, "VertexPaint", "Paint"); | ||||
| RNA_def_struct_sdna(srna, "VPaint"); | RNA_def_struct_sdna(srna, "VPaint"); | ||||
| RNA_def_struct_path_func(srna, "rna_VertexPaint_path"); | RNA_def_struct_path_func(srna, "rna_VertexPaint_path"); | ||||
| RNA_def_struct_ui_text(srna, "Vertex Paint", "Properties of vertex and weight paint mode"); | RNA_def_struct_ui_text(srna, "Vertex Paint", "Properties of vertex and weight paint mode"); | ||||
| /* vertex paint only */ | /* vertex paint only */ | ||||
| prop = RNA_def_property(srna, "color_lock_a", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", VP_LOCK_A); | |||||
| RNA_def_property_ui_text(prop, "Lock A", "Lock alpha"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | |||||
| prop = RNA_def_property(srna, "color_lock_b", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", VP_LOCK_B); | |||||
| RNA_def_property_ui_text(prop, "Lock B", "Lock Blue color"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | |||||
| prop = RNA_def_property(srna, "color_lock_g", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", VP_LOCK_G); | |||||
| RNA_def_property_ui_text(prop, "Lock G", "Lock Green color"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | |||||
| prop = RNA_def_property(srna, "color_lock_r", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", VP_LOCK_R); | |||||
| RNA_def_property_ui_text(prop, "Lock R", "Lock Red color"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | |||||
| prop = RNA_def_property(srna, "use_occlude", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", VP_NO_OCCLUDE); | |||||
| RNA_def_property_ui_text(prop, "Occlude", "Only paint onto the vertices directly under the brush (slower)"); | |||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | |||||
| prop = RNA_def_property(srna, "use_normal", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_normal", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", VP_NORMALS); | RNA_def_property_boolean_sdna(prop, NULL, "flag", VP_NORMALS); | ||||
| RNA_def_property_ui_text(prop, "Normals", "Apply the vertex normal before painting"); | RNA_def_property_ui_text(prop, "Normals", "Apply the vertex normal before painting"); | ||||
| 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, "use_spray", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_spray", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", VP_SPRAY); | RNA_def_property_boolean_sdna(prop, NULL, "flag", VP_SPRAY); | ||||
| RNA_def_property_ui_text(prop, "Spray", "Keep applying paint effect while holding mouse"); | RNA_def_property_ui_text(prop, "Spray", "Keep applying paint effect while holding mouse"); | ||||
| ▲ Show 20 Lines • Show All 449 Lines • Show Last 20 Lines | |||||