[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44114] trunk/blender/source/blender/ makesrna/intern/rna_tracking.c: Camera tracking: corrected default values for some reconstruction-related properties.

Sergey Sharybin sergey.vfx at gmail.com
Tue Feb 14 18:03:16 CET 2012


Revision: 44114
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44114
Author:   nazgul
Date:     2012-02-14 17:03:06 +0000 (Tue, 14 Feb 2012)
Log Message:
-----------
Camera tracking: corrected default values for some reconstruction-related properties.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_tracking.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_tracking.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_tracking.c	2012-02-14 15:59:10 UTC (rev 44113)
+++ trunk/blender/source/blender/makesrna/intern/rna_tracking.c	2012-02-14 17:03:06 UTC (rev 44114)
@@ -546,6 +546,7 @@
 	prop= RNA_def_property(srna, "distance", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
 	RNA_def_property_float_sdna(prop, NULL, "dist");
+	RNA_def_property_float_default(prop, 1.0f);
 	RNA_def_property_ui_text(prop, "Distance", "Distance between two bundles used for scene scaling");
 
 	/* frames count */
@@ -665,6 +666,7 @@
 	RNA_def_property_float_sdna(prop, NULL, "object_distance");
 	RNA_def_property_ui_text(prop, "Distance", "Distance between two bundles used for object scaling");
 	RNA_def_property_range(prop, 0.001, 10000);
+	RNA_def_property_float_default(prop, 1.0f);
 	RNA_def_property_ui_range(prop, 0.001, 10000.0, 1, 3);
 }
 
@@ -1227,6 +1229,7 @@
 	RNA_def_property_float_sdna(prop, NULL, "scale");
 	RNA_def_property_range(prop, 0.0001f, 10000.0f);
 	RNA_def_property_ui_range(prop, 0.0001f, 10000.0, 1, 4);
+	RNA_def_property_float_default(prop, 1.0f);
 	RNA_def_property_ui_text(prop, "Scale", "Scale of object solution in camera space");
 	RNA_def_property_update(prop, NC_MOVIECLIP|NA_EDITED, "rna_trackingObject_flushUpdate");
 }




More information about the Bf-blender-cvs mailing list