Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_gpencil_modifier.c
| Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | static const EnumPropertyItem gpencil_tint_type_items[] = { | ||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| #endif | #endif | ||||
| #ifdef RNA_RUNTIME | #ifdef RNA_RUNTIME | ||||
| # include "DNA_curve_types.h" | # include "DNA_curve_types.h" | ||||
| # include "DNA_fluid_types.h" | # include "DNA_fluid_types.h" | ||||
| # include "DNA_material_types.h" | |||||
| # include "DNA_particle_types.h" | # include "DNA_particle_types.h" | ||||
| # include "BKE_cachefile.h" | # include "BKE_cachefile.h" | ||||
| # include "BKE_context.h" | # include "BKE_context.h" | ||||
| # include "BKE_gpencil.h" | # include "BKE_gpencil.h" | ||||
| # include "BKE_gpencil_modifier.h" | # include "BKE_gpencil_modifier.h" | ||||
| # include "BKE_object.h" | # include "BKE_object.h" | ||||
| ▲ Show 20 Lines • Show All 224 Lines • ▼ Show 20 Lines | if (md->flag & GP_OPACITY_NORMALIZE) { | ||||
| if (md->factor > 1.0f) { | if (md->factor > 1.0f) { | ||||
| md->factor = 1.0f; | md->factor = 1.0f; | ||||
| } | } | ||||
| } | } | ||||
| rna_GpencilModifier_update(bmain, scene, ptr); | rna_GpencilModifier_update(bmain, scene, ptr); | ||||
| } | } | ||||
| bool rna_GpencilModifier_material_poll(PointerRNA *ptr, PointerRNA value) | |||||
| { | |||||
| Object *ob = (Object *)ptr->owner_id; | |||||
| Material *ma = (Material *)value.owner_id; | |||||
| return BKE_gpencil_object_material_index_get(ob, ma) != -1; | |||||
| } | |||||
| static void rna_GpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| Material **ma_target, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| Object *ob = (Object *)ptr->owner_id; | |||||
| Material *ma = (Material *)value.owner_id; | |||||
| if (ma == NULL || BKE_gpencil_object_material_index_get(ob, ma) != -1) { | |||||
| id_lib_extern((ID *)ob); | |||||
| *ma_target = ma; | |||||
| } | |||||
| else { | |||||
| BKE_reportf( | |||||
| reports, | |||||
| RPT_ERROR, | |||||
| "Cannot assign material '%s', it has to be used by the grease pencil object already", | |||||
| ma->id.name); | |||||
| } | |||||
| } | |||||
| static void rna_LineartGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| LineartGpencilModifierData *lmd = (LineartGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &lmd->target_material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_NoiseGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| NoiseGpencilModifierData *nmd = (NoiseGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &nmd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_SmoothGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| SmoothGpencilModifierData *smd = (SmoothGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &smd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_SubdivGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| SubdivGpencilModifierData *smd = (SubdivGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &smd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_SimplifyGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| SimplifyGpencilModifierData *smd = (SimplifyGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &smd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_ThickGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| ThickGpencilModifierData *tmd = (ThickGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &tmd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_OffsetGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| OffsetGpencilModifierData *omd = (OffsetGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &omd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_TintGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| TintGpencilModifierData *tmd = (TintGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &tmd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_ColorGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| ColorGpencilModifierData *cmd = (ColorGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &cmd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_ArrayGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| ArrayGpencilModifierData *amd = (ArrayGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &amd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_OpacityGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| OpacityGpencilModifierData *omd = (OpacityGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &omd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_LatticeGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| LatticeGpencilModifierData *lmd = (LatticeGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &lmd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_MirrorGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| MirrorGpencilModifierData *mmd = (MirrorGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &mmd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_HookGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| HookGpencilModifierData *hmd = (HookGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &hmd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_MultiplyGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| MultiplyGpencilModifierData *mmd = (MultiplyGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &mmd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| static void rna_TextureGpencilModifier_material_set(PointerRNA *ptr, | |||||
| PointerRNA value, | |||||
| struct ReportList *reports) | |||||
| { | |||||
| TextureGpencilModifierData *tmd = (TextureGpencilModifierData *)ptr->data; | |||||
| Material **ma_target = &tmd->material; | |||||
| rna_GpencilModifier_material_set(ptr, value, ma_target, reports); | |||||
| } | |||||
| #else | #else | ||||
| static void rna_def_modifier_gpencilnoise(BlenderRNA *brna) | static void rna_def_modifier_gpencilnoise(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "NoiseGpencilModifier", "GpencilModifier"); | srna = RNA_def_struct(brna, "NoiseGpencilModifier", "GpencilModifier"); | ||||
| RNA_def_struct_ui_text(srna, "Noise Modifier", "Noise effect modifier"); | RNA_def_struct_ui_text(srna, "Noise Modifier", "Noise effect modifier"); | ||||
| RNA_def_struct_sdna(srna, "NoiseGpencilModifierData"); | RNA_def_struct_sdna(srna, "NoiseGpencilModifierData"); | ||||
| RNA_def_struct_ui_icon(srna, ICON_MOD_NOISE); | RNA_def_struct_ui_icon(srna, ICON_MOD_NOISE); | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_NoiseGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "vgname"); | RNA_def_property_string_sdna(prop, NULL, "vgname"); | ||||
| RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | ||||
| RNA_def_property_string_funcs(prop, NULL, NULL, "rna_NoiseGpencilModifier_vgname_set"); | RNA_def_property_string_funcs(prop, NULL, NULL, "rna_NoiseGpencilModifier_vgname_set"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencilsmooth(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_SmoothGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "vgname"); | RNA_def_property_string_sdna(prop, NULL, "vgname"); | ||||
| RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | ||||
| RNA_def_property_string_funcs(prop, NULL, NULL, "rna_SmoothGpencilModifier_vgname_set"); | RNA_def_property_string_funcs(prop, NULL, NULL, "rna_SmoothGpencilModifier_vgname_set"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencilsubdiv(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_SubdivGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "level", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "level", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "level"); | RNA_def_property_int_sdna(prop, NULL, "level"); | ||||
| RNA_def_property_range(prop, 0, 5); | RNA_def_property_range(prop, 0, 5); | ||||
| RNA_def_property_ui_text(prop, "Level", "Number of subdivisions"); | RNA_def_property_ui_text(prop, "Level", "Number of subdivisions"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencilsimplify(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_SimplifyGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "factor", PROP_FLOAT, PROP_FACTOR); | prop = RNA_def_property(srna, "factor", PROP_FLOAT, PROP_FACTOR); | ||||
| RNA_def_property_float_sdna(prop, NULL, "factor"); | RNA_def_property_float_sdna(prop, NULL, "factor"); | ||||
| RNA_def_property_range(prop, 0, 100.0); | RNA_def_property_range(prop, 0, 100.0); | ||||
| RNA_def_property_ui_range(prop, 0, 5.0f, 1.0f, 3); | RNA_def_property_ui_range(prop, 0, 5.0f, 1.0f, 3); | ||||
| RNA_def_property_ui_text(prop, "Factor", "Factor of Simplify"); | RNA_def_property_ui_text(prop, "Factor", "Factor of Simplify"); | ||||
| ▲ Show 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencilthick(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_ThickGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "vgname"); | RNA_def_property_string_sdna(prop, NULL, "vgname"); | ||||
| RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | ||||
| RNA_def_property_string_funcs(prop, NULL, NULL, "rna_ThickGpencilModifier_vgname_set"); | RNA_def_property_string_funcs(prop, NULL, NULL, "rna_ThickGpencilModifier_vgname_set"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpenciloffset(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_OffsetGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "vgname"); | RNA_def_property_string_sdna(prop, NULL, "vgname"); | ||||
| RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | ||||
| RNA_def_property_string_funcs(prop, NULL, NULL, "rna_OffsetGpencilModifier_vgname_set"); | RNA_def_property_string_funcs(prop, NULL, NULL, "rna_OffsetGpencilModifier_vgname_set"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpenciltint(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_TintGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "vgname"); | RNA_def_property_string_sdna(prop, NULL, "vgname"); | ||||
| RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | ||||
| RNA_def_property_string_funcs(prop, NULL, NULL, "rna_TintGpencilModifier_vgname_set"); | RNA_def_property_string_funcs(prop, NULL, NULL, "rna_TintGpencilModifier_vgname_set"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencilcolor(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_ColorGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "hue", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "hue", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_range(prop, 0.0, 1.0); | RNA_def_property_range(prop, 0.0, 1.0); | ||||
| RNA_def_property_ui_range(prop, 0.0, 1.0, 0.1, 3); | RNA_def_property_ui_range(prop, 0.0, 1.0, 0.1, 3); | ||||
| RNA_def_property_float_sdna(prop, NULL, "hsv[0]"); | RNA_def_property_float_sdna(prop, NULL, "hsv[0]"); | ||||
| RNA_def_property_ui_text(prop, "Hue", "Color Hue"); | RNA_def_property_ui_text(prop, "Hue", "Color Hue"); | ||||
| ▲ Show 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencilopacity(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_OpacityGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "vgname"); | RNA_def_property_string_sdna(prop, NULL, "vgname"); | ||||
| RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | ||||
| RNA_def_property_string_funcs(prop, NULL, NULL, "rna_OpacityGpencilModifier_vgname_set"); | RNA_def_property_string_funcs(prop, NULL, NULL, "rna_OpacityGpencilModifier_vgname_set"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencilarray(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_ArrayGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "pass_index", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "pass_index", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "pass_index"); | RNA_def_property_int_sdna(prop, NULL, "pass_index"); | ||||
| RNA_def_property_range(prop, 0, 100); | RNA_def_property_range(prop, 0, 100); | ||||
| RNA_def_property_ui_text(prop, "Pass", "Pass index"); | RNA_def_property_ui_text(prop, "Pass", "Pass index"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 283 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencillattice(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_LatticeGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "vgname"); | RNA_def_property_string_sdna(prop, NULL, "vgname"); | ||||
| RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | ||||
| RNA_def_property_string_funcs(prop, NULL, NULL, "rna_LatticeGpencilModifier_vgname_set"); | RNA_def_property_string_funcs(prop, NULL, NULL, "rna_LatticeGpencilModifier_vgname_set"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencilmirror(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_MirrorGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "pass_index", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "pass_index", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "pass_index"); | RNA_def_property_int_sdna(prop, NULL, "pass_index"); | ||||
| RNA_def_property_range(prop, 0, 100); | RNA_def_property_range(prop, 0, 100); | ||||
| RNA_def_property_ui_text(prop, "Pass", "Pass index"); | RNA_def_property_ui_text(prop, "Pass", "Pass index"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencilhook(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_HookGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "vertex_group", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "vgname"); | RNA_def_property_string_sdna(prop, NULL, "vgname"); | ||||
| RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group name for modulating the deform"); | ||||
| RNA_def_property_string_funcs(prop, NULL, NULL, "rna_HookGpencilModifier_vgname_set"); | RNA_def_property_string_funcs(prop, NULL, NULL, "rna_HookGpencilModifier_vgname_set"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpencilmultiply(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_string_sdna(prop, NULL, "layername"); | RNA_def_property_string_sdna(prop, NULL, "layername"); | ||||
| RNA_def_property_ui_text(prop, "Layer", "Layer name"); | RNA_def_property_ui_text(prop, "Layer", "Layer name"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_MultiplyGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "pass_index", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "pass_index", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "pass_index"); | RNA_def_property_int_sdna(prop, NULL, "pass_index"); | ||||
| RNA_def_property_range(prop, 0, 100); | RNA_def_property_range(prop, 0, 100); | ||||
| RNA_def_property_ui_text(prop, "Pass", "Pass index"); | RNA_def_property_ui_text(prop, "Pass", "Pass index"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | static void rna_def_modifier_gpenciltexture(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "invert_layers", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "invert_layers", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_TEX_INVERT_LAYER); | RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_TEX_INVERT_LAYER); | ||||
| RNA_def_property_ui_text(prop, "Inverse Layers", "Inverse filter"); | RNA_def_property_ui_text(prop, "Inverse Layers", "Inverse filter"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_TextureGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | RNA_def_property_ui_text(prop, "Material", "Material used for filtering effect"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "invert_materials", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "invert_materials", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_TEX_INVERT_MATERIAL); | RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_TEX_INVERT_MATERIAL); | ||||
| RNA_def_property_ui_text(prop, "Inverse Materials", "Inverse filter"); | RNA_def_property_ui_text(prop, "Inverse Materials", "Inverse filter"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | RNA_def_property_ui_text( | ||||
| prop, "Level End", "Maximum number of occlusions for the generated strokes"); | prop, "Level End", "Maximum number of occlusions for the generated strokes"); | ||||
| RNA_def_property_range(prop, 0, 128); | RNA_def_property_range(prop, 0, 128); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "target_material", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "target_material", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_struct_type(prop, "Material"); | RNA_def_property_struct_type(prop, "Material"); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_pointer_funcs(prop, | |||||
| NULL, | |||||
| "rna_LineartGpencilModifier_material_set", | |||||
| NULL, | |||||
| "rna_GpencilModifier_material_poll"); | |||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Target Material", "Grease Pencil material assigned to the generated strokes"); | prop, "Target Material", "Grease Pencil material assigned to the generated strokes"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| prop = RNA_def_property(srna, "target_layer", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "target_layer", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Target Layer", "Grease Pencil layer assigned to the generated strokes"); | prop, "Target Layer", "Grease Pencil layer assigned to the generated strokes"); | ||||
| RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | RNA_def_property_update(prop, 0, "rna_GpencilModifier_update"); | ||||
| ▲ Show 20 Lines • Show All 138 Lines • Show Last 20 Lines | |||||