[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43725] trunk/blender/source/blender/ editors/space_clip/space_clip.c: Movie clip editor: curves view shouldn' t jump back to top when click on it

Sergey Sharybin sergey.vfx at gmail.com
Thu Jan 26 14:13:57 CET 2012


Revision: 43725
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43725
Author:   nazgul
Date:     2012-01-26 13:13:48 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
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.

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

Modified: trunk/blender/source/blender/editors/space_clip/space_clip.c
===================================================================
--- trunk/blender/source/blender/editors/space_clip/space_clip.c	2012-01-26 12:48:36 UTC (rev 43724)
+++ trunk/blender/source/blender/editors/space_clip/space_clip.c	2012-01-26 13:13:48 UTC (rev 43725)
@@ -604,10 +604,6 @@
 				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 @@
 				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;
 			}




More information about the Bf-blender-cvs mailing list