Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,052 Lines • ▼ Show 20 Lines | static void rna_def_tool_settings(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "use_gpencil_stroke_endpoints", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_gpencil_stroke_endpoints", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna( | RNA_def_property_boolean_sdna( | ||||
| prop, NULL, "gpencil_v3d_align", GP_PROJECT_DEPTH_STROKE_ENDPOINTS); | prop, NULL, "gpencil_v3d_align", GP_PROJECT_DEPTH_STROKE_ENDPOINTS); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Only Endpoints", "Only use the first and last parts of the stroke for snapping"); | prop, "Only Endpoints", "Only use the first and last parts of the stroke for snapping"); | ||||
| RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL); | RNA_def_property_update(prop, NC_GPENCIL | ND_DATA, NULL); | ||||
| /* Grease Pencil - Select mode */ | /* Grease Pencil - Select mode Edit */ | ||||
| prop = RNA_def_property(srna, "gpencil_selectmode", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "gpencil_selectmode_edit", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "gpencil_selectmode"); | RNA_def_property_enum_sdna(prop, NULL, "gpencil_selectmode_edit"); | ||||
| RNA_def_property_enum_items(prop, gpencil_selectmode_items); | |||||
| RNA_def_property_ui_text(prop, "Select Mode", ""); | |||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | |||||
| /* Grease Pencil - Select mode Sculpt */ | |||||
| prop = RNA_def_property(srna, "gpencil_selectmode_sculpt", PROP_ENUM, PROP_NONE); | |||||
| RNA_def_property_enum_sdna(prop, NULL, "gpencil_selectmode_sculpt"); | |||||
| RNA_def_property_enum_items(prop, gpencil_selectmode_items); | RNA_def_property_enum_items(prop, gpencil_selectmode_items); | ||||
| RNA_def_property_ui_text(prop, "Select Mode", ""); | RNA_def_property_ui_text(prop, "Select Mode", ""); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| /* Annotations - 2D Views Stroke Placement */ | /* Annotations - 2D Views Stroke Placement */ | ||||
| prop = RNA_def_property(srna, "annotation_stroke_placement_view2d", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "annotation_stroke_placement_view2d", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "gpencil_v2d_align"); | RNA_def_property_enum_bitflag_sdna(prop, NULL, "gpencil_v2d_align"); | ||||
| RNA_def_property_enum_items(prop, annotation_stroke_placement_items); | RNA_def_property_enum_items(prop, annotation_stroke_placement_items); | ||||
| ▲ Show 20 Lines • Show All 4,514 Lines • Show Last 20 Lines | |||||