[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43698] trunk/blender/source/blender/ makesrna/intern/rna_space.c: Fix #29989: Ctrl + T to show seconds in timeline, python error

Sergey Sharybin sergey.vfx at gmail.com
Wed Jan 25 22:23:41 CET 2012


Revision: 43698
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43698
Author:   nazgul
Date:     2012-01-25 21:23:34 +0000 (Wed, 25 Jan 2012)
Log Message:
-----------
Fix #29989: Ctrl + T to show seconds in timeline, python error

Issue seems to be caused by refactoring from rev43376.

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43376

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

Modified: trunk/blender/source/blender/makesrna/intern/rna_space.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_space.c	2012-01-25 20:58:07 UTC (rev 43697)
+++ trunk/blender/source/blender/makesrna/intern/rna_space.c	2012-01-25 21:23:34 UTC (rev 43698)
@@ -2375,6 +2375,11 @@
 	RNA_def_property_ui_text(prop, "Show Frame Number Indicator", "Show frame number beside the current frame indicator line");
 	RNA_def_property_update(prop, NC_SPACE|ND_SPACE_TIME, NULL);
 	
+	prop= RNA_def_property(srna, "show_seconds", PROP_BOOLEAN, PROP_NONE);
+	RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", TIME_DRAWFRAMES);
+	RNA_def_property_ui_text(prop, "Show Seconds", "Show timing in seconds not frames");
+	RNA_def_property_update(prop, NC_SPACE|ND_SPACE_TIME, NULL);
+	
 	/* displaying cache status */
 	prop= RNA_def_property(srna, "show_cache", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "cache_display", TIME_CACHE_DISPLAY);



More information about the Bf-blender-cvs mailing list