Merging r41246 through r41535 from trunk into soc-2011-tomato
[blender.git] / source / blender / editors / space_image / image_ops.c
index 7121e4872eb2eecedab1281df4f42991b216bf1e..abaa2c814d5d76483c50f73c28d63f437522b306 100644 (file)
@@ -817,8 +817,9 @@ static int image_open_exec(bContext *C, wmOperator *op)
        /* initialize because of new image */
        if(iuser) {
                iuser->sfra= 1;
        /* initialize because of new image */
        if(iuser) {
                iuser->sfra= 1;
-               iuser->offset= 0;
                iuser->fie_ima= 2;
                iuser->fie_ima= 2;
+
+               BKE_image_guess_offset(NULL, ima, iuser);
        }
 
        /* XXX unpackImage frees image buffers */
        }
 
        /* XXX unpackImage frees image buffers */