[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51214] trunk/blender/source/blender/ editors/transform/transform.c: Autokey warning - Only show for the active region

Joshua Leung aligorith at gmail.com
Tue Oct 9 12:36:07 CEST 2012


Revision: 51214
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51214
Author:   aligorith
Date:     2012-10-09 10:36:07 +0000 (Tue, 09 Oct 2012)
Log Message:
-----------
Autokey warning - Only show for the active region

In response to some of the feedback, I've taken a second look at the situation
when multiple views are open, and indeed in that situation having it display in
every region and blinking was quite overwhelming (admittedly, I've mainly been
testing on single-view setups). Now it only shows for the region that was used
for initiating the transform.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/transform/transform.c

Modified: trunk/blender/source/blender/editors/transform/transform.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform.c	2012-10-09 10:33:24 UTC (rev 51213)
+++ trunk/blender/source/blender/editors/transform/transform.c	2012-10-09 10:36:07 UTC (rev 51214)
@@ -1617,10 +1617,16 @@
 	Scene *scene = t->scene;
 	Object *ob = OBACT;
 	
-	/* draw autokeyframing hint in the corner */
+	/* draw autokeyframing hint in the corner 
+	 * - only draw if enabled (advanced users may be distracted/annoyed), 
+	 *   for objects that will be autokeyframed (no point ohterwise),
+	 *   AND only for the active region (as showing all is too overwhelming)
+	 */
 	if ((U.autokey_flag & AUTOKEY_FLAG_NOWARNING) == 0) {
-		if (ob && autokeyframe_cfra_can_key(scene, &ob->id)) {
-			drawAutoKeyWarning(t, ar);
+		if (ar == t->ar) {
+			if (ob && autokeyframe_cfra_can_key(scene, &ob->id)) {
+				drawAutoKeyWarning(t, ar);
+			}
 		}
 	}
 }




More information about the Bf-blender-cvs mailing list