Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_camera.c
| Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Lines | static void rna_def_camera_background_image(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Opacity", "Image opacity to blend the image against the background color"); | prop, "Opacity", "Image opacity to blend the image against the background color"); | ||||
| RNA_def_property_range(prop, 0.0, 1.0); | RNA_def_property_range(prop, 0.0, 1.0); | ||||
| RNA_def_property_update(prop, NC_CAMERA | ND_DRAW_RENDER_VIEWPORT, NULL); | RNA_def_property_update(prop, NC_CAMERA | ND_DRAW_RENDER_VIEWPORT, NULL); | ||||
| prop = RNA_def_property(srna, "show_expanded", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_expanded", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | RNA_def_property_flag(prop, PROP_NO_DEG_UPDATE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", CAM_BGIMG_FLAG_EXPANDED); | RNA_def_property_boolean_sdna(prop, NULL, "flag", CAM_BGIMG_FLAG_EXPANDED); | ||||
| RNA_def_property_ui_text(prop, "Show Expanded", "Show the expanded in the user interface"); | RNA_def_property_ui_text(prop, "Show Expanded", "Show the details in the user interface"); | ||||
pioverfour: “Show the expanded” is not grammatically correct, this is probably a copy/paste error. | |||||
| RNA_def_property_ui_icon(prop, ICON_DISCLOSURE_TRI_RIGHT, 1); | RNA_def_property_ui_icon(prop, ICON_DISCLOSURE_TRI_RIGHT, 1); | ||||
| prop = RNA_def_property(srna, "use_camera_clip", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_camera_clip", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", CAM_BGIMG_FLAG_CAMERACLIP); | RNA_def_property_boolean_sdna(prop, NULL, "flag", CAM_BGIMG_FLAG_CAMERACLIP); | ||||
| RNA_def_property_ui_text(prop, "Camera Clip", "Use movie clip from active scene camera"); | RNA_def_property_ui_text(prop, "Camera Clip", "Use movie clip from active scene camera"); | ||||
| RNA_def_property_update(prop, NC_CAMERA | ND_DRAW_RENDER_VIEWPORT, NULL); | RNA_def_property_update(prop, NC_CAMERA | ND_DRAW_RENDER_VIEWPORT, NULL); | ||||
| prop = RNA_def_property(srna, "show_background_image", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_background_image", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 497 Lines • Show Last 20 Lines | |||||
“Show the expanded” is not grammatically correct, this is probably a copy/paste error.