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,372 Lines • ▼ Show 20 Lines | static void rna_def_gpencil_brushes(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| prop = RNA_def_property(srna, "active_index", PROP_INT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "active_index", PROP_INT, PROP_UNSIGNED); | ||||
| RNA_def_property_int_funcs(prop, | RNA_def_property_int_funcs(prop, | ||||
| "rna_GPencilBrushes_index_get", | "rna_GPencilBrushes_index_get", | ||||
| "rna_GPencilBrushes_index_set", | "rna_GPencilBrushes_index_set", | ||||
| "rna_GPencilBrushes_index_range"); | "rna_GPencilBrushes_index_range"); | ||||
| RNA_def_property_ui_text(prop, "Active Brush Index", "Index of active brush"); | RNA_def_property_ui_text(prop, "Active Brush Index", "Index of active brush"); | ||||
| } | } | ||||
| static void rna_def_transform_orientation(BlenderRNA *brna) | |||||
| { | |||||
| StructRNA *srna; | |||||
| PropertyRNA *prop; | |||||
| srna = RNA_def_struct(brna, "TransformOrientation", NULL); | |||||
| prop = RNA_def_property(srna, "matrix", PROP_FLOAT, PROP_MATRIX); | |||||
| RNA_def_property_float_sdna(prop, NULL, "mat"); | |||||
| RNA_def_property_multi_array(prop, 2, rna_matrix_dimsize_3x3); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | |||||
| prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); | |||||
| RNA_def_struct_name_property(srna, prop); | |||||
| RNA_def_property_ui_text(prop, "Name", "Name of the custom transform orientation"); | |||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | |||||
| } | |||||
| static void rna_def_tool_settings(BlenderRNA *brna) | static void rna_def_tool_settings(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static EnumPropertyItem uv_select_mode_items[] = { | static EnumPropertyItem uv_select_mode_items[] = { | ||||
| {UV_SELECT_VERTEX, "VERTEX", ICON_UV_VERTEXSEL, "Vertex", "Vertex selection mode"}, | {UV_SELECT_VERTEX, "VERTEX", ICON_UV_VERTEXSEL, "Vertex", "Vertex selection mode"}, | ||||
| {UV_SELECT_EDGE, "EDGE", ICON_UV_EDGESEL, "Edge", "Edge selection mode"}, | {UV_SELECT_EDGE, "EDGE", ICON_UV_EDGESEL, "Edge", "Edge selection mode"}, | ||||
| ▲ Show 20 Lines • Show All 5,829 Lines • ▼ Show 20 Lines | void RNA_def_scene(BlenderRNA *brna) | ||||
| /* Grease Pencil */ | /* Grease Pencil */ | ||||
| prop = RNA_def_property(srna, "grease_pencil", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "grease_pencil", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "gpd"); | RNA_def_property_pointer_sdna(prop, NULL, "gpd"); | ||||
| RNA_def_property_struct_type(prop, "GreasePencil"); | RNA_def_property_struct_type(prop, "GreasePencil"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_REFCOUNT); | RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_REFCOUNT); | ||||
| RNA_def_property_ui_text(prop, "Grease Pencil Data", "Grease Pencil data-block"); | RNA_def_property_ui_text(prop, "Grease Pencil Data", "Grease Pencil data-block"); | ||||
| RNA_def_property_update(prop, NC_GPENCIL | ND_DATA | NA_EDITED, NULL); | RNA_def_property_update(prop, NC_GPENCIL | ND_DATA | NA_EDITED, NULL); | ||||
| /* Transform Orientations */ | |||||
| prop = RNA_def_property(srna, "orientations", PROP_COLLECTION, PROP_NONE); | |||||
| RNA_def_property_collection_sdna(prop, NULL, "transform_spaces", NULL); | |||||
| RNA_def_property_struct_type(prop, "TransformOrientation"); | |||||
| RNA_def_property_ui_text(prop, "Transform Orientations", ""); | |||||
| /* active MovieClip */ | /* active MovieClip */ | ||||
| prop = RNA_def_property(srna, "active_clip", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "active_clip", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "clip"); | RNA_def_property_pointer_sdna(prop, NULL, "clip"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_struct_type(prop, "MovieClip"); | RNA_def_property_struct_type(prop, "MovieClip"); | ||||
| RNA_def_property_ui_text(prop, "Active Movie Clip", "Active movie clip used for constraints and viewport drawing"); | RNA_def_property_ui_text(prop, "Active Movie Clip", "Active movie clip used for constraints and viewport drawing"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | ||||
| Show All 38 Lines | void RNA_def_scene(BlenderRNA *brna) | ||||
| rna_def_gpencil_brush(brna); | rna_def_gpencil_brush(brna); | ||||
| rna_def_gpencil_interpolate(brna); | rna_def_gpencil_interpolate(brna); | ||||
| rna_def_unified_paint_settings(brna); | rna_def_unified_paint_settings(brna); | ||||
| rna_def_curve_paint_settings(brna); | rna_def_curve_paint_settings(brna); | ||||
| rna_def_statvis(brna); | rna_def_statvis(brna); | ||||
| rna_def_unit_settings(brna); | rna_def_unit_settings(brna); | ||||
| rna_def_scene_image_format_data(brna); | rna_def_scene_image_format_data(brna); | ||||
| rna_def_scene_game_data(brna); | rna_def_scene_game_data(brna); | ||||
| rna_def_transform_orientation(brna); | |||||
| rna_def_selected_uv_element(brna); | rna_def_selected_uv_element(brna); | ||||
| rna_def_display_safe_areas(brna); | rna_def_display_safe_areas(brna); | ||||
| rna_def_scene_collection(brna); | rna_def_scene_collection(brna); | ||||
| rna_def_layer_collection(brna); | rna_def_layer_collection(brna); | ||||
| rna_def_layer_collection_override(brna); | rna_def_layer_collection_override(brna); | ||||
| rna_def_scene_layer(brna); | rna_def_scene_layer(brna); | ||||
| rna_def_object_base(brna); | rna_def_object_base(brna); | ||||
| RNA_define_animate_sdna(true); | RNA_define_animate_sdna(true); | ||||
| Show All 15 Lines | |||||