Image cache rewrite to using generic movie cache
[blender.git] / source / blender / editors / space_info / info_ops.c
index 4e367c1d48d24c7eb13e46cbec07750b9bfc04b8..6c76ba64893c65c3d5cf41ae580742199795b270 100644 (file)
@@ -145,7 +145,7 @@ static int pack_all_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(ev
        
        // first check for dirty images
        for (ima = bmain->image.first; ima; ima = ima->id.next) {
-               if (ima->ibufs.first) { /* XXX FIX */
+               if (BKE_image_has_loaded_ibuf(ima)) { /* XXX FIX */
                        ibuf = BKE_image_acquire_ibuf(ima, NULL, NULL);
                        
                        if (ibuf && (ibuf->userflags & IB_BITMAPDIRTY)) {