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 2,629 Lines • ▼ Show 20 Lines | static void rna_def_transform_orientation(BlenderRNA *brna) | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "TransformOrientation", NULL); | srna = RNA_def_struct(brna, "TransformOrientation", NULL); | ||||
| prop = RNA_def_property(srna, "matrix", PROP_FLOAT, PROP_MATRIX); | prop = RNA_def_property(srna, "matrix", PROP_FLOAT, PROP_MATRIX); | ||||
| RNA_def_property_float_sdna(prop, NULL, "mat"); | RNA_def_property_float_sdna(prop, NULL, "mat"); | ||||
| RNA_def_property_multi_array(prop, 2, rna_matrix_dimsize_3x3); | RNA_def_property_multi_array(prop, 2, rna_matrix_dimsize_3x3); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_TRANSFORM, NULL); | ||||
| prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); | ||||
| RNA_def_struct_name_property(srna, prop); | RNA_def_struct_name_property(srna, prop); | ||||
| RNA_def_property_ui_text(prop, "Name", "Name of the custom transform orientation"); | RNA_def_property_ui_text(prop, "Name", "Name of the custom transform orientation"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_TRANSFORM, NULL); | ||||
| } | } | ||||
| static void rna_def_transform_orientation_slot(BlenderRNA *brna) | static void rna_def_transform_orientation_slot(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| srna = RNA_def_struct(brna, "TransformOrientationSlot", NULL); | srna = RNA_def_struct(brna, "TransformOrientationSlot", NULL); | ||||
| RNA_def_struct_sdna(srna, "TransformOrientationSlot"); | RNA_def_struct_sdna(srna, "TransformOrientationSlot"); | ||||
| RNA_def_struct_path_func(srna, "rna_TransformOrientationSlot_path"); | RNA_def_struct_path_func(srna, "rna_TransformOrientationSlot_path"); | ||||
| RNA_def_struct_ui_text(srna, "Orientation Slot", ""); | RNA_def_struct_ui_text(srna, "Orientation Slot", ""); | ||||
| /* Orientations */ | /* Orientations */ | ||||
| prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, rna_enum_transform_orientation_items); | RNA_def_property_enum_items(prop, rna_enum_transform_orientation_items); | ||||
| RNA_def_property_enum_funcs(prop, | RNA_def_property_enum_funcs(prop, | ||||
| "rna_TransformOrientationSlot_type_get", | "rna_TransformOrientationSlot_type_get", | ||||
| "rna_TransformOrientationSlot_type_set", | "rna_TransformOrientationSlot_type_set", | ||||
| "rna_TransformOrientation_with_scene_itemf"); | "rna_TransformOrientation_with_scene_itemf"); | ||||
| RNA_def_property_ui_text(prop, "Orientation", "Transformation orientation"); | RNA_def_property_ui_text(prop, "Orientation", "Transformation orientation"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_TRANSFORM, NULL); | ||||
| prop = RNA_def_property(srna, "custom_orientation", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "custom_orientation", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "TransformOrientation"); | RNA_def_property_struct_type(prop, "TransformOrientation"); | ||||
| RNA_def_property_pointer_funcs(prop, "rna_TransformOrientationSlot_get", NULL, NULL, NULL); | RNA_def_property_pointer_funcs(prop, "rna_TransformOrientationSlot_get", NULL, NULL, NULL); | ||||
| RNA_def_property_ui_text(prop, "Current Transform Orientation", ""); | RNA_def_property_ui_text(prop, "Current Transform Orientation", ""); | ||||
| /* flag */ | /* flag */ | ||||
| prop = RNA_def_property(srna, "use", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 363 Lines • ▼ Show 20 Lines | static void rna_def_tool_settings(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | ||||
| prop = RNA_def_property(srna, "use_transform_pivot_point_align", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_transform_pivot_point_align", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "transform_flag", SCE_XFORM_AXIS_ALIGN); | RNA_def_property_boolean_sdna(prop, NULL, "transform_flag", SCE_XFORM_AXIS_ALIGN); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Only Locations", | "Only Locations", | ||||
| "Only transform object locations, without affecting rotation or scaling"); | "Only transform object locations, without affecting rotation or scaling"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_TRANSFORM, NULL); | ||||
| prop = RNA_def_property(srna, "use_transform_data_origin", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_transform_data_origin", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "transform_flag", SCE_XFORM_DATA_ORIGIN); | RNA_def_property_boolean_sdna(prop, NULL, "transform_flag", SCE_XFORM_DATA_ORIGIN); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Transform Origins", "Transform object origins, while leaving the shape in place"); | prop, "Transform Origins", "Transform object origins, while leaving the shape in place"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_TRANSFORM, NULL); | ||||
| prop = RNA_def_property(srna, "use_transform_skip_children", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_transform_skip_children", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "transform_flag", SCE_XFORM_SKIP_CHILDREN); | RNA_def_property_boolean_sdna(prop, NULL, "transform_flag", SCE_XFORM_SKIP_CHILDREN); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Transform Parents", "Transform the parents, leaving the children in place"); | prop, "Transform Parents", "Transform the parents, leaving the children in place"); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_TRANSFORM, NULL); | ||||
| prop = RNA_def_property(srna, "use_transform_correct_face_attributes", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_transform_correct_face_attributes", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "uvcalc_flag", UVCALC_TRANSFORM_CORRECT); | RNA_def_property_boolean_sdna(prop, NULL, "uvcalc_flag", UVCALC_TRANSFORM_CORRECT); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Correct Face Attributes", | "Correct Face Attributes", | ||||
| "Correct data such as UV's and vertex colors when transforming"); | "Correct data such as UV's and vertex colors when transforming"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | RNA_def_property_update(prop, NC_SCENE | ND_TOOLSETTINGS, NULL); | ||||
| ▲ Show 20 Lines • Show All 3,432 Lines • ▼ Show 20 Lines | # endif | ||||
| RNA_def_property_ui_text(prop, "Multiple Views", "Use multiple views in the scene"); | RNA_def_property_ui_text(prop, "Multiple Views", "Use multiple views in the scene"); | ||||
| RNA_def_property_update(prop, NC_WINDOW, NULL); | RNA_def_property_update(prop, NC_WINDOW, NULL); | ||||
| prop = RNA_def_property(srna, "views_format", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "views_format", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, views_format_items); | RNA_def_property_enum_items(prop, views_format_items); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_ui_text(prop, "Setup Stereo Mode", ""); | RNA_def_property_ui_text(prop, "Setup Stereo Mode", ""); | ||||
| RNA_def_property_enum_funcs(prop, NULL, "rna_RenderSettings_views_format_set", NULL); | RNA_def_property_enum_funcs(prop, NULL, "rna_RenderSettings_views_format_set", NULL); | ||||
| RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); | RNA_def_property_update(prop, NC_WINDOW, NULL); | ||||
| /* engine */ | /* engine */ | ||||
| prop = RNA_def_property(srna, "engine", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "engine", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, engine_items); | RNA_def_property_enum_items(prop, engine_items); | ||||
| RNA_def_property_enum_funcs(prop, | RNA_def_property_enum_funcs(prop, | ||||
| "rna_RenderSettings_engine_get", | "rna_RenderSettings_engine_get", | ||||
| "rna_RenderSettings_engine_set", | "rna_RenderSettings_engine_set", | ||||
| "rna_RenderSettings_engine_itemf"); | "rna_RenderSettings_engine_itemf"); | ||||
| ▲ Show 20 Lines • Show All 1,373 Lines • ▼ Show 20 Lines | # endif | ||||
| /* 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( | RNA_def_property_ui_text( | ||||
| prop, "Active Movie Clip", "Active movie clip used for constraints and viewport drawing"); | 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_SCENE | ND_DRAW_RENDER_VIEWPORT, NULL); | ||||
| /* color management */ | /* color management */ | ||||
| prop = RNA_def_property(srna, "view_settings", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "view_settings", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "view_settings"); | RNA_def_property_pointer_sdna(prop, NULL, "view_settings"); | ||||
| RNA_def_property_struct_type(prop, "ColorManagedViewSettings"); | RNA_def_property_struct_type(prop, "ColorManagedViewSettings"); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "View Settings", "Color management settings applied on image before saving"); | prop, "View Settings", "Color management settings applied on image before saving"); | ||||
| ▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines | |||||