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 5,384 Lines • ▼ Show 20 Lines | static void rna_def_selected_uv_element(BlenderRNA *brna) | ||||
| RNA_def_property_flag(prop, PROP_IDPROPERTY); | RNA_def_property_flag(prop, PROP_IDPROPERTY); | ||||
| RNA_def_property_ui_text(prop, "Element Index", ""); | RNA_def_property_ui_text(prop, "Element Index", ""); | ||||
| prop = RNA_def_property(srna, "face_index", PROP_INT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "face_index", PROP_INT, PROP_UNSIGNED); | ||||
| RNA_def_property_flag(prop, PROP_IDPROPERTY); | RNA_def_property_flag(prop, PROP_IDPROPERTY); | ||||
| RNA_def_property_ui_text(prop, "Face Index", ""); | RNA_def_property_ui_text(prop, "Face Index", ""); | ||||
| } | } | ||||
| static void rna_def_display_safe_areas(BlenderRNA *brna) | |||||
| { | |||||
| StructRNA *srna; | |||||
| PropertyRNA *prop; | |||||
| static float default_title[2] = {0.035f, 0.035f}; | |||||
| static float default_action[2] = {0.1f, 0.05f}; | |||||
| static float default_title_center[2] = {0.175f, 0.05f}; | |||||
| static float default_action_center[2] = {0.15f, 0.05f}; | |||||
| srna = RNA_def_struct(brna, "DisplaySafeAreas", NULL); | |||||
| RNA_def_struct_ui_text(srna, "Safe Areas", "Safe Areas used in 3D view and the VSE"); | |||||
| RNA_def_struct_sdna(srna, "DisplaySafeAreas"); | |||||
| /* SAFE AREAS */ | |||||
| prop = RNA_def_property(srna, "title", PROP_FLOAT, PROP_XYZ); | |||||
| RNA_def_property_float_sdna(prop, NULL, "title"); | |||||
| RNA_def_property_array(prop, 2); | |||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | |||||
| RNA_def_property_float_array_default(prop, default_title); | |||||
| RNA_def_property_ui_text(prop, "Title Safe margins", "Safe area for text and graphics"); | |||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | |||||
| prop = RNA_def_property(srna, "action", PROP_FLOAT, PROP_XYZ); | |||||
| RNA_def_property_float_sdna(prop, NULL, "action"); | |||||
| RNA_def_property_array(prop, 2); | |||||
| RNA_def_property_float_array_default(prop, default_action); | |||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | |||||
| RNA_def_property_ui_text(prop, "Action Safe Margins", "Safe area for general elements"); | |||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | |||||
| prop = RNA_def_property(srna, "title_center", PROP_FLOAT, PROP_XYZ); | |||||
| RNA_def_property_float_sdna(prop, NULL, "title_center"); | |||||
| RNA_def_property_array(prop, 2); | |||||
| RNA_def_property_float_array_default(prop, default_title_center); | |||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | |||||
| RNA_def_property_ui_text(prop, "Center Title Safe Margins", "Safe area for text and graphics in a different aspect ratio"); | |||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | |||||
| prop = RNA_def_property(srna, "action_center", PROP_FLOAT, PROP_XYZ); | |||||
| RNA_def_property_float_sdna(prop, NULL, "action_center"); | |||||
| RNA_def_property_array(prop, 2); | |||||
| RNA_def_property_float_array_default(prop, default_action_center); | |||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | |||||
| RNA_def_property_ui_text(prop, "Center Action Safe Margins", "Safe area for general elements in a different aspect ratio"); | |||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | |||||
| } | |||||
| void RNA_def_scene(BlenderRNA *brna) | void RNA_def_scene(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| FunctionRNA *func; | FunctionRNA *func; | ||||
| ▲ Show 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | void RNA_def_scene(BlenderRNA *brna) | ||||
| /* Render Data */ | /* Render Data */ | ||||
| prop = RNA_def_property(srna, "render", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "render", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_NEVER_NULL); | RNA_def_property_flag(prop, PROP_NEVER_NULL); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "r"); | RNA_def_property_pointer_sdna(prop, NULL, "r"); | ||||
| RNA_def_property_struct_type(prop, "RenderSettings"); | RNA_def_property_struct_type(prop, "RenderSettings"); | ||||
| RNA_def_property_ui_text(prop, "Render Data", ""); | RNA_def_property_ui_text(prop, "Render Data", ""); | ||||
| /* Safe Areas */ | |||||
| prop = RNA_def_property(srna, "safe_areas", PROP_POINTER, PROP_NONE); | |||||
| RNA_def_property_pointer_sdna(prop, NULL, "safe_areas"); | |||||
| RNA_def_property_flag(prop, PROP_NEVER_NULL); | |||||
| RNA_def_property_struct_type(prop, "DisplaySafeAreas"); | |||||
| RNA_def_property_ui_text(prop, "Safe Areas", ""); | |||||
| /* Markers */ | /* Markers */ | ||||
| prop = RNA_def_property(srna, "timeline_markers", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "timeline_markers", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "markers", NULL); | RNA_def_property_collection_sdna(prop, NULL, "markers", NULL); | ||||
| RNA_def_property_struct_type(prop, "TimelineMarker"); | RNA_def_property_struct_type(prop, "TimelineMarker"); | ||||
| RNA_def_property_ui_text(prop, "Timeline Markers", "Markers used in all timelines for the current scene"); | RNA_def_property_ui_text(prop, "Timeline Markers", "Markers used in all timelines for the current scene"); | ||||
| rna_def_timeline_markers(brna, prop); | rna_def_timeline_markers(brna, prop); | ||||
| /* Audio Settings */ | /* Audio Settings */ | ||||
| ▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | void RNA_def_scene(BlenderRNA *brna) | ||||
| rna_def_tool_settings(brna); | rna_def_tool_settings(brna); | ||||
| rna_def_unified_paint_settings(brna); | rna_def_unified_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_transform_orientation(brna); | ||||
| rna_def_selected_uv_element(brna); | rna_def_selected_uv_element(brna); | ||||
| rna_def_display_safe_areas(brna); | |||||
| RNA_define_animate_sdna(true); | RNA_define_animate_sdna(true); | ||||
| /* *** Animated *** */ | /* *** Animated *** */ | ||||
| rna_def_scene_render_data(brna); | rna_def_scene_render_data(brna); | ||||
| rna_def_scene_render_layer(brna); | rna_def_scene_render_layer(brna); | ||||
| /* Scene API */ | /* Scene API */ | ||||
| RNA_api_scene(srna); | RNA_api_scene(srna); | ||||
| } | } | ||||
| #endif | #endif | ||||