Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_camera.c
| Show First 20 Lines • Show All 513 Lines • ▼ Show 20 Lines | static void rna_def_camera_dof_settings_data(BlenderRNA *brna) | ||||
| RNA_def_property_struct_type(prop, "Object"); | RNA_def_property_struct_type(prop, "Object"); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "focus_object"); | RNA_def_property_pointer_sdna(prop, NULL, "focus_object"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Focus Object", "Use this object to define the depth of field focal point"); | prop, "Focus Object", "Use this object to define the depth of field focal point"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Camera_dependency_update"); | RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Camera_dependency_update"); | ||||
| prop = RNA_def_property(srna, "focus_subtarget", PROP_STRING, PROP_NONE); | |||||
| RNA_def_property_string_sdna(prop, NULL, "focus_subtarget"); | |||||
| RNA_def_property_ui_text( | |||||
| prop, "Focus Bone", "Use this armature bone to define the depth of field focal point"); | |||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Camera_dependency_update"); | |||||
| prop = RNA_def_property(srna, "focus_distance", PROP_FLOAT, PROP_DISTANCE); | prop = RNA_def_property(srna, "focus_distance", PROP_FLOAT, PROP_DISTANCE); | ||||
| // RNA_def_property_pointer_sdna(prop, NULL, "focus_distance"); | // RNA_def_property_pointer_sdna(prop, NULL, "focus_distance"); | ||||
| RNA_def_property_range(prop, 0.0f, FLT_MAX); | RNA_def_property_range(prop, 0.0f, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, 0.0f, 5000.0f, 1, 2); | RNA_def_property_ui_range(prop, 0.0f, 5000.0f, 1, 2); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Focus Distance", "Distance to the focus point for depth of field"); | prop, "Focus Distance", "Distance to the focus point for depth of field"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Camera_dof_update"); | RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Camera_dof_update"); | ||||
| ▲ Show 20 Lines • Show All 319 Lines • Show Last 20 Lines | |||||