修复缩放回归检查借用已释放文档快照的问题

这个提交包含在:
mac 于 2026-11-14 23:14:10 +08:00 提交
1 父节点 1ef5273ee3
当前提交 5adb9a20c7
2 个文件已更改
+3 -2

没有与搜索条件相匹配的文件

@@ -155,6 +155,7 @@
up(236,259.75,part);drain();
NSDictionary *edited=DYSharedMaskWithID(DYReadTools(host,kCMTimeZero).document,stampID);
NSArray *relocated=DYStampSourceAtTime(edited,kCMTimeZero);
NSArray *sourceEditedKeys=[[edited[@"keys"]copy]autorelease];
run.record(@"native-osc-source-drag-keys-current-frame-and-preserves-other-tracking-keys",part==7&&fabs([relocated[0]doubleValue]-.35)<1e-6&&fabs([relocated[1]doubleValue]-.35)<1e-6&&fabs([relocated[0]doubleValue]-[preview[0]doubleValue])<1e-6&&fabs([relocated[1]doubleValue]-[preview[1]doubleValue])<1e-6&&[edited[@"stampSource"]isEqual:source]&&[edited[@"parameters"]isEqual:trackedStamp[@"parameters"]]&&[edited[@"keys"]count]==keys.count&&[edited[@"keys"][0][@"stampManualSource"]boolValue]&&[edited[@"keys"][1]isEqual:keys[1]]&&base->_undoStarts==undo+1&&base->_undoEnds==undo+1,@{@"part":@(part),@"source":relocated?:@[],@"keys":@([edited[@"keys"]count]),@"undoGroups":@(base->_undoStarts-undo)});
[osc drawOSCWithWidth:640 height:400 activePart:0 destinationImage:overlay atTime:kCMTimeZero];
part=down(236,259.75);
@@ -171,7 +172,7 @@
up(320,260,part);drain();
NSDictionary *resized=DYSharedMaskWithID(DYReadTools(host,kCMTimeZero).document,stampID);
DYMaskParameters enlarged=DYMaskAtTime(resized,kCMTimeZero);
run.record(@"native-osc-stamp-resizes-coverage-without-rotation-handle-or-track-changes",!rotationHandle&&part==2&&enlarged.width>target.width&&enlarged.height>target.height&&enlarged.centerX==target.centerX&&enlarged.centerY==target.centerY&&[resized[@"keys"]isEqual:edited[@"keys"]],@{@"part":@(part),@"rotationHandle":@(rotationHandle),@"size":@[@(enlarged.width),@(enlarged.height)],@"originalSize":@[@(target.width),@(target.height)],@"center":@[@(enlarged.centerX),@(enlarged.centerY)],@"originalCenter":@[@(target.centerX),@(target.centerY)],@"keysUnchanged":@([resized[@"keys"]isEqual:edited[@"keys"]]),@"beforeKeys":[edited[@"keys"]description],@"afterKeys":[resized[@"keys"]description]});
run.record(@"native-osc-stamp-resizes-coverage-without-rotation-handle-or-track-changes",!rotationHandle&&part==2&&enlarged.width>target.width&&enlarged.height>target.height&&enlarged.centerX==target.centerX&&enlarged.centerY==target.centerY&&[resized[@"keys"]isEqual:sourceEditedKeys],@{@"part":@(part),@"rotationHandle":@(rotationHandle),@"size":@[@(enlarged.width),@(enlarged.height)],@"originalSize":@[@(target.width),@(target.height)],@"center":@[@(enlarged.centerX),@(enlarged.centerY)],@"originalCenter":@[@(target.centerX),@(target.centerY)],@"keysUnchanged":@([resized[@"keys"]isEqual:sourceEditedKeys]),@"beforeKeys":[sourceEditedKeys description],@"afterKeys":[resized[@"keys"]description]});
[osc drawOSCWithWidth:640 height:400 activePart:0 destinationImage:overlay atTime:kCMTimeZero];
undo=base->_undoStarts;
part=down(404,212.5);