macOS/QuickLook: support rich thumbnail #107072

Open
Ankit Meel wants to merge 10 commits from ankitm/blender:ankitm/2ql into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 2 additions and 2 deletions
Showing only changes of commit a4f987cb66 - Show all commits

View File

@ -125,10 +125,10 @@ static NSImage *generate_nsimage_for_file(const char *src_blend_path, NSError **
NSData *ns_data = [NSData dataWithBytes:png_buf_opt->data() length:png_buf_opt->size()];
CGDataProviderRef provider = CGDataProviderCreateWithCFData((CFDataRef)ns_data);
CGColorRenderingIntent intent = kCGRenderingIntentDefault;
bool shouldInterpolate = true;
bool should_interpolate = true;
CGFloat *decode = nullptr;
CGImageRef image_ref = CGImageCreateWithPNGDataProvider(
provider, decode, shouldInterpolate, intent);
provider, decode, should_interpolate, intent);
NSImage *ns_image = [[NSImage alloc] initWithCGImage:image_ref size:NSZeroSize];
CGImageRelease(image_ref);
CGDataProviderRelease(provider);