Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2012-10-09 14:36:07 +0400
committerJoshua Leung <aligorith@gmail.com>2012-10-09 14:36:07 +0400
commitfca582a2da1998819434021d26de69ef34748591 (patch)
tree623878b574097bba7af9aef32aeca097f546fad1 /source/blender
parent6712e7428257b57732f64efcdcea95b40043000b (diff)
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.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/transform/transform.c12
1 files changed, 9 insertions, 3 deletions
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);
+ }
}
}
}