Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_curveprofile.c
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| /** \file | /** \file | ||||
| * \ingroup RNA | * \ingroup RNA | ||||
| */ | */ | ||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <stdlib.h> | #include <stdlib.h> | ||||
| #include "DNA_curve_types.h" | #include "DNA_curve_types.h" | ||||
| #include "DNA_curveprofile_types.h" | #include "DNA_curveprofile_types.h" | ||||
| #include "RNA_define.h" | #include "RNA_define.h" | ||||
| #include "rna_internal.h" | #include "rna_internal.h" | ||||
| #include "BLT_translation.h" | |||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "WM_types.h" | #include "WM_types.h" | ||||
| #ifdef RNA_RUNTIME | #ifdef RNA_RUNTIME | ||||
| # include "RNA_access.h" | # include "RNA_access.h" | ||||
| # include "BKE_curveprofile.h" | # include "BKE_curveprofile.h" | ||||
| ▲ Show 20 Lines • Show All 191 Lines • ▼ Show 20 Lines | static void rna_def_curveprofile(BlenderRNA *brna) | ||||
| }; | }; | ||||
| srna = RNA_def_struct(brna, "CurveProfile", NULL); | srna = RNA_def_struct(brna, "CurveProfile", NULL); | ||||
| RNA_def_struct_ui_text(srna, "CurveProfile", "Profile Path editor used to build a profile path"); | RNA_def_struct_ui_text(srna, "CurveProfile", "Profile Path editor used to build a profile path"); | ||||
| prop = RNA_def_property(srna, "preset", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "preset", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "preset"); | RNA_def_property_enum_sdna(prop, NULL, "preset"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_curveprofile_preset_items); | RNA_def_property_enum_items(prop, rna_enum_curveprofile_preset_items); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_MESH); | |||||
| RNA_def_property_ui_text(prop, "Preset", ""); | RNA_def_property_ui_text(prop, "Preset", ""); | ||||
| prop = RNA_def_property(srna, "use_clip", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_clip", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", PROF_USE_CLIP); | RNA_def_property_boolean_sdna(prop, NULL, "flag", PROF_USE_CLIP); | ||||
| RNA_def_property_ui_text(prop, "Clip", "Force the path view to fit a defined boundary"); | RNA_def_property_ui_text(prop, "Clip", "Force the path view to fit a defined boundary"); | ||||
| RNA_def_property_boolean_funcs(prop, NULL, "rna_CurveProfile_clip_set"); | RNA_def_property_boolean_funcs(prop, NULL, "rna_CurveProfile_clip_set"); | ||||
| prop = RNA_def_property(srna, "use_sample_straight_edges", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_sample_straight_edges", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines | |||||