Make limits of sequencer scaling a bit more sane
authorAntony Riakiotakis <kalast@gmail.com>
Thu, 5 Mar 2015 18:05:39 +0000 (19:05 +0100)
committerAntony Riakiotakis <kalast@gmail.com>
Thu, 5 Mar 2015 18:05:39 +0000 (19:05 +0100)
source/blender/blenloader/intern/versioning_270.c
source/blender/editors/space_sequencer/space_sequencer.c

index 089ee158570632dd76e5cb1fe344566110b7ac66..ab5c8ace430d8c88232f99c35dc428a7b76cc3bd 100644 (file)
@@ -644,6 +644,8 @@ void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *main)
                                                for (ar = sl->regionbase.first; ar; ar = ar->next) {
                                                        if (ar->regiontype == RGN_TYPE_PREVIEW) {
                                                                ar->v2d.keepzoom |= V2D_LIMITZOOM;
+                                                               ar->v2d.minzoom = 0.001f;
+                                                               ar->v2d.maxzoom = 1000.0f;
                                                                break;
                                                        }
                                                }
index 8934628ee2c4a93001a21f8824ffb1cd286d1c15..7a7f189b18797c3e639df7e862d2245a7755b6f8 100644 (file)
@@ -145,8 +145,8 @@ static SpaceLink *sequencer_new(const bContext *C)
        ar->flag |= RGN_FLAG_HIDDEN;
        /* for now, aspect ratio should be maintained, and zoom is clamped within sane default limits */
        ar->v2d.keepzoom = V2D_KEEPASPECT | V2D_KEEPZOOM | V2D_LIMITZOOM;
-       ar->v2d.minzoom = 0.00001f;
-       ar->v2d.maxzoom = 100000.0f;
+       ar->v2d.minzoom = 0.001f;
+       ar->v2d.maxzoom = 1000.0f;
        ar->v2d.tot.xmin = -960.0f; /* 1920 width centered */
        ar->v2d.tot.ymin = -540.0f; /* 1080 height centered */
        ar->v2d.tot.xmax = 960.0f;