Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_data.c
| Show First 20 Lines • Show All 617 Lines • ▼ Show 20 Lines | void GPENCIL_OT_layer_duplicate_object(wmOperatorType *ot) | ||||
| ot->prop = RNA_def_enum(ot->srna, "mode", copy_mode, GP_LAYER_COPY_OBJECT_ALL_FRAME, "Mode", ""); | ot->prop = RNA_def_enum(ot->srna, "mode", copy_mode, GP_LAYER_COPY_OBJECT_ALL_FRAME, "Mode", ""); | ||||
| prop = RNA_def_boolean(ot->srna, | prop = RNA_def_boolean(ot->srna, | ||||
| "only_active", | "only_active", | ||||
| true, | true, | ||||
| "Only Active", | "Only Active", | ||||
| "Copy only active Layer, uncheck to append all layers"); | "Copy only active Layer, uncheck to append all layers"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_GPENCIL); | |||||
| RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); | ||||
| } | } | ||||
| /* ********************* Duplicate Frame ************************** */ | /* ********************* Duplicate Frame ************************** */ | ||||
| enum { | enum { | ||||
| GP_FRAME_DUP_ACTIVE = 0, | GP_FRAME_DUP_ACTIVE = 0, | ||||
| GP_FRAME_DUP_ALL = 1, | GP_FRAME_DUP_ALL = 1, | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 3,047 Lines • ▼ Show 20 Lines | void GPENCIL_OT_materials_copy_to_object(wmOperatorType *ot) | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| prop = RNA_def_boolean(ot->srna, | prop = RNA_def_boolean(ot->srna, | ||||
| "only_active", | "only_active", | ||||
| true, | true, | ||||
| "Only Active", | "Only Active", | ||||
| "Append only active material, uncheck to append all materials"); | "Append only active material, uncheck to append all materials"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_GPENCIL); | |||||
| RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); | RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); | ||||
| } | } | ||||
| bool ED_gpencil_add_lattice_modifier(const bContext *C, | bool ED_gpencil_add_lattice_modifier(const bContext *C, | ||||
| ReportList *reports, | ReportList *reports, | ||||
| Object *ob, | Object *ob, | ||||
| Object *ob_latt) | Object *ob_latt) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines | |||||