[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59338] trunk/blender/source/blender/ editors/space_clip/clip_ops.c: bugfix: fit_view property was saved in CLIP_OT_view_all operator

Dalai Felinto dfelinto at gmail.com
Wed Aug 21 01:23:17 CEST 2013


Revision: 59338
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59338
Author:   dfelinto
Date:     2013-08-20 23:23:17 +0000 (Tue, 20 Aug 2013)
Log Message:
-----------
bugfix: fit_view property was saved in CLIP_OT_view_all operator
before that if you pressed 'F', fit_view would be True every time (e.g.,
even if you pressed 'HOME' which is supposed to call the operator
without the fit_view).

I'm not sure why we need a fullscreen without 'fit_view' but anyways,
that's a different issue.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_clip/clip_ops.c

Modified: trunk/blender/source/blender/editors/space_clip/clip_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_clip/clip_ops.c	2013-08-20 20:05:47 UTC (rev 59337)
+++ trunk/blender/source/blender/editors/space_clip/clip_ops.c	2013-08-20 23:23:17 UTC (rev 59338)
@@ -782,6 +782,8 @@
 
 void CLIP_OT_view_all(wmOperatorType *ot)
 {
+	PropertyRNA *prop;
+
 	/* identifiers */
 	ot->name = "View All";
 	ot->idname = "CLIP_OT_view_all";
@@ -792,7 +794,8 @@
 	ot->poll = ED_space_clip_view_clip_poll;
 
 	/* properties */
-	RNA_def_boolean(ot->srna, "fit_view", 0, "Fit View", "Fit frame to the viewport");
+	prop = RNA_def_boolean(ot->srna, "fit_view", 0, "Fit View", "Fit frame to the viewport");
+	RNA_def_property_flag(prop, PROP_SKIP_SAVE);
 }
 
 /********************** view selected operator *********************/




More information about the Bf-blender-cvs mailing list