Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_camera.c
| Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | static void rna_def_camera_stereo_data(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "convergence_distance", PROP_FLOAT, PROP_DISTANCE); | prop = RNA_def_property(srna, "convergence_distance", PROP_FLOAT, PROP_DISTANCE); | ||||
| RNA_def_property_range(prop, 0.00001f, FLT_MAX); | RNA_def_property_range(prop, 0.00001f, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 15.f, 1, 2); | RNA_def_property_ui_range(prop, 0.0f, 15.f, 1, 2); | ||||
| RNA_def_property_ui_text(prop, "Convergence Plane Distance", | RNA_def_property_ui_text(prop, "Convergence Plane Distance", | ||||
| "The converge point for the stereo cameras " | "The converge point for the stereo cameras " | ||||
| "(often the distance between a projector and the projection screen)"); | "(often the distance between a projector and the projection screen)"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | ||||
| prop = RNA_def_property(srna, "use_spherical_stereo", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", CAM_S3D_SPHERICAL); | |||||
| RNA_def_property_ui_text(prop, "Spherical Stereo", | |||||
| "Render every pixel rotating the camera around the " | |||||
| "middle of the interocular distance"); | |||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | |||||
| } | } | ||||
| void RNA_def_camera(BlenderRNA *brna) | void RNA_def_camera(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static EnumPropertyItem prop_type_items[] = { | static EnumPropertyItem prop_type_items[] = { | ||||
| {CAM_PERSP, "PERSP", 0, "Perspective", ""}, | {CAM_PERSP, "PERSP", 0, "Perspective", ""}, | ||||
| ▲ Show 20 Lines • Show All 222 Lines • Show Last 20 Lines | |||||