Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_gpencil.c
| Show First 20 Lines • Show All 1,269 Lines • ▼ Show 20 Lines | static void rna_def_gpencil_stroke_point(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update"); | RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update"); | ||||
| prop = RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_SPOINT_SELECT); | RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_SPOINT_SELECT); | ||||
| RNA_def_property_boolean_funcs(prop, NULL, "rna_GPencil_stroke_point_select_set"); | RNA_def_property_boolean_funcs(prop, NULL, "rna_GPencil_stroke_point_select_set"); | ||||
| RNA_def_property_ui_text(prop, "Select", "Point is selected for viewport editing"); | RNA_def_property_ui_text(prop, "Select", "Point is selected for viewport editing"); | ||||
| RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update"); | RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update"); | ||||
| prop = RNA_def_property(srna, "time", PROP_FLOAT, PROP_TIME); | |||||
| RNA_def_property_float_sdna(prop, NULL, "time"); | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_ui_text(prop, "Time", "Time relative to stroke start"); | |||||
| /* Vertex color. */ | /* Vertex color. */ | ||||
| prop = RNA_def_property(srna, "vertex_color", PROP_FLOAT, PROP_COLOR); | prop = RNA_def_property(srna, "vertex_color", PROP_FLOAT, PROP_COLOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "vert_color"); | RNA_def_property_float_sdna(prop, NULL, "vert_color"); | ||||
| RNA_def_property_array(prop, 4); | RNA_def_property_array(prop, 4); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Vertex Color", "Color used to mix with point color to get final color"); | prop, "Vertex Color", "Color used to mix with point color to get final color"); | ||||
| ▲ Show 20 Lines • Show All 457 Lines • ▼ Show 20 Lines | static void rna_def_gpencil_stroke(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Vertex Fill Color", "Color used to mix with fill color to get final color"); | prop, "Vertex Fill Color", "Color used to mix with fill color to get final color"); | ||||
| RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update"); | RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update"); | ||||
| /* Selection Index */ | /* Selection Index */ | ||||
| prop = RNA_def_property(srna, "select_index", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "select_index", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "select_index"); | RNA_def_property_int_sdna(prop, NULL, "select_index"); | ||||
| RNA_def_property_ui_text(prop, "Select Index", "Index of selection used for interpolation"); | RNA_def_property_ui_text(prop, "Select Index", "Index of selection used for interpolation"); | ||||
| /* Init time */ | |||||
| prop = RNA_def_property(srna, "init_time", PROP_FLOAT, PROP_TIME); | |||||
| RNA_def_property_float_sdna(prop, NULL, "inittime"); | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_ui_text(prop, "Init Time", "Initial time of the stroke"); | |||||
| } | } | ||||
| static void rna_def_gpencil_strokes_api(BlenderRNA *brna, PropertyRNA *cprop) | static void rna_def_gpencil_strokes_api(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| FunctionRNA *func; | FunctionRNA *func; | ||||
| PropertyRNA *parm; | PropertyRNA *parm; | ||||
| ▲ Show 20 Lines • Show All 980 Lines • Show Last 20 Lines | |||||