From fca582a2da1998819434021d26de69ef34748591 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 9 Oct 2012 10:36:07 +0000 Subject: 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. --- source/blender/editors/transform/transform.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/transform') diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 775e8d2de8e..273d8913497 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -1617,10 +1617,16 @@ static void drawTransformPixel(const struct bContext *UNUSED(C), ARegion *ar, vo 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); + } } } } -- cgit v1.2.3