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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-01-26 17:13:48 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-01-26 17:13:48 +0400
commit331c235d93ef77bce3c5d5b668d433bfbb75ca88 (patch)
treee6dfe58da9e97c96cafdb85c049a53467dd789d1 /source/blender/editors/space_clip
parent4ae93a48d83a8340493aef0049c43f6180033807 (diff)
Movie clip editor: curves view shouldn't jump back to top when click on it
Also it should now re-store position after toggling it.
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r--source/blender/editors/space_clip/space_clip.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c
index 9eff602fe6b..0d34cc2cfbf 100644
--- a/source/blender/editors/space_clip/space_clip.c
+++ b/source/blender/editors/space_clip/space_clip.c
@@ -604,10 +604,6 @@ static void clip_refresh(const bContext *C, ScrArea *sa)
ar_main->alignment= RGN_ALIGN_NONE;
view_changed= 1;
}
- if (ar_preview && ar_preview->alignment != RGN_ALIGN_NONE) {
- ar_preview->alignment= RGN_ALIGN_NONE;
- view_changed= 1;
- }
break;
case SC_VIEW_GRAPH:
if (ar_preview && (ar_preview->flag & RGN_FLAG_HIDDEN)) {
@@ -620,7 +616,7 @@ static void clip_refresh(const bContext *C, ScrArea *sa)
ar_main->alignment= RGN_ALIGN_NONE;
view_changed= 1;
}
- if (ar_preview && ar_preview->alignment != RGN_ALIGN_TOP) {
+ if (ar_preview && !ELEM(ar_preview->alignment, RGN_ALIGN_TOP, RGN_ALIGN_BOTTOM)) {
ar_preview->alignment= RGN_ALIGN_TOP;
view_changed= 1;
}