diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2008-12-01 02:27:10 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2008-12-01 02:27:10 +0300 |
commit | 3f0d3e0a50da6920ade941d85d54a7b21e6f1154 (patch) | |
tree | 8d0d43811b50a70641a7ff5a12e5043f21da0850 /source/blender/makesrna/intern/rna_camera.c | |
parent | e66fff7906dd6c3045d42bbf15ddfffb129136dc (diff) |
RNA
- Minor updates to Camera and start of Ipo (+ IpoDriver and IpoCurve) wrappings.
Diffstat (limited to 'source/blender/makesrna/intern/rna_camera.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_camera.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_camera.c b/source/blender/makesrna/intern/rna_camera.c index 1fb3893bf5c..153397f0bd7 100644 --- a/source/blender/makesrna/intern/rna_camera.c +++ b/source/blender/makesrna/intern/rna_camera.c @@ -61,7 +61,7 @@ void RNA_def_camera(BlenderRNA *brna) prop= RNA_def_property(srna, "angle", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "angle"); RNA_def_property_range(prop, 0.0f, 100.0f); - RNA_def_property_ui_text(prop, "Angle", "Perspective Camera lens in degrees."); + RNA_def_property_ui_text(prop, "Angle", "Perspective Camera lens value in degrees."); prop= RNA_def_property(srna, "clip_start", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "clipsta"); @@ -76,7 +76,7 @@ void RNA_def_camera(BlenderRNA *brna) prop= RNA_def_property(srna, "lens", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "lens"); RNA_def_property_range(prop, 1.0f, 250.0f); - RNA_def_property_ui_text(prop, "Lens", "Perspective Camera lens in mm."); + RNA_def_property_ui_text(prop, "Lens", "Perspective Camera lens value in mm."); prop= RNA_def_property(srna, "ortho_scale", PROP_FLOAT, PROP_NONE); RNA_def_property_float_sdna(prop, NULL, "ortho_scale"); @@ -124,9 +124,20 @@ void RNA_def_camera(BlenderRNA *brna) RNA_def_property_boolean_sdna(prop, NULL, "flag", CAM_SHOWNAME); RNA_def_property_ui_text(prop, "Show Name", "Draw the active Camera's name in Camera view."); - prop= RNA_def_property(srna, "angle_toggle", PROP_BOOLEAN, PROP_NONE); + prop= RNA_def_property(srna, "use_degrees", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", CAM_ANGLETOGGLE); - RNA_def_property_ui_text(prop, "Angle Toggle", "Use degrees instead of mm as the unit of the Camera lens."); + RNA_def_property_ui_text(prop, "Use Degrees", "Use degrees instead of mm as the unit of the Camera lens."); + + /* Pointers */ + + prop= RNA_def_property(srna, "ipo", PROP_POINTER, PROP_NONE); + RNA_def_property_struct_type(prop, "Ipo"); + RNA_def_property_ui_text(prop, "Ipo Curve", ""); + + prop= RNA_def_property(srna, "dof_object", PROP_POINTER, PROP_NONE); + RNA_def_property_struct_type(prop, "Object"); + RNA_def_property_pointer_sdna(prop, NULL, "dof_ob"); + RNA_def_property_ui_text(prop, "DOF Object", "Use this object to define depth of field focal point."); } #endif |