Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_gpencil.c
| Show First 20 Lines • Show All 1,819 Lines • ▼ Show 20 Lines | static void rna_def_gpencil_frame(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "is_edited", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "is_edited", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna( | RNA_def_property_boolean_sdna( | ||||
| prop, NULL, "flag", GP_FRAME_PAINT); /* XXX should it be editable? */ | prop, NULL, "flag", GP_FRAME_PAINT); /* XXX should it be editable? */ | ||||
| RNA_def_property_ui_text(prop, "Paint Lock", "Frame is being edited (painted on)"); | RNA_def_property_ui_text(prop, "Paint Lock", "Frame is being edited (painted on)"); | ||||
| 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_FRAME_SELECT); | RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_FRAME_SELECT); | ||||
| RNA_def_property_ui_text(prop, "Select", "Frame is selected for editing in the Dope Sheet"); | RNA_def_property_ui_text(prop, "Select", "Frame is selected for editing in the Dope Sheet"); | ||||
| RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, "rna_GPencil_update"); | |||||
| /* API */ | /* API */ | ||||
| func = RNA_def_function(srna, "clear", "rna_GPencil_frame_clear"); | func = RNA_def_function(srna, "clear", "rna_GPencil_frame_clear"); | ||||
| RNA_def_function_ui_description(func, "Remove all the grease pencil frame data"); | RNA_def_function_ui_description(func, "Remove all the grease pencil frame data"); | ||||
| } | } | ||||
| static void rna_def_gpencil_frames_api(BlenderRNA *brna, PropertyRNA *cprop) | static void rna_def_gpencil_frames_api(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 902 Lines • Show Last 20 Lines | |||||