fix: preserve last-frame canvas curve and pen edits across the host out-point boundary
这个提交包含在:
1 父节点
dad77aff77
当前提交
8ac7ca43da
9 个文件已更改
+43
-10
没有与搜索条件相匹配的文件
@@ -35,5 +35,10 @@
|
||||
run.record(@"shared-pen-close-keeps-three-point-bezier-before-author-write",closedParameters.kind==DYMaskBezier&&[closed[@"nodes"]length]==3*sizeof(DYBezierNode)&&![closed[@"drawing"]boolValue]&&base->_undoStarts==sharedUndo);
|
||||
drain();NSDictionary *sharedAuthor=DYReadTools(base,kCMTimeZero).document,*savedShared=DYSharedMaskWithID(sharedAuthor,sharedID);run.record(@"shared-pen-close-persists-same-path-and-both-module-references-once",[savedShared[@"nodes"]isEqual:closed[@"nodes"]]&&DYToolIDsForSharedMask(sharedAuthor,sharedID).count==2&&base->_undoStarts==sharedUndo+1&&[[plugin toolCanvasMaskAtTime:kCMTimeZero][@"nodes"]isEqual:closed[@"nodes"]]);
|
||||
__block NSInteger refreshCount=0;id refreshObserver=[NSNotificationCenter.defaultCenter addObserverForName:DYModelChanged object:host queue:nil usingBlock:^(NSNotification *note){refreshCount++;}];for(int i=0;i<100;i++)[(id<FxTileableEffect>)plugin parameterChanged:2003 atTime:kCMTimeZero error:NULL];BOOL deferred=refreshCount==0;drain();run.record(@"inspector-parameter-burst-coalesces-to-one-deferred-refresh",deferred&&refreshCount==1);[NSNotificationCenter.defaultCenter removeObserver:refreshObserver];
|
||||
// A custom-view clock may report the exclusive out point while OSC supplies
|
||||
// the displayed last-frame time. Keep the provided event time for authoring.
|
||||
host.boundaryTiming=YES;host->_time=CMTimeMake(4,1);CMTime last=CMTimeMake(99,25);redraw();
|
||||
auto endClick=[&](double x,double y){[osc mouseDownAtPositionX:x positionY:y activePart:1 modifiers:0 forceUpdate:&update atTime:last];[osc mouseUpAtPositionX:x positionY:y activePart:1 modifiers:0 forceUpdate:&update atTime:last];};
|
||||
endClick(170,275);endClick(445,275);endClick(300,140);int endUndo=base->_undoStarts;[osc keyDownAtPositionX:300 positionY:140 keyPressed:13 modifiers:0 forceUpdate:&update didHandle:&handled atTime:last];drain();NSDictionary *endMask=[DYReadTools(base,last).document[@"baseMasks"][@"hsl"]lastObject];run.record(@"pen-last-frame-close-saves-three-authored-nodes-at-exclusive-host-end",[endMask[@"nodes"]length]==3*sizeof(DYBezierNode)&&base->_undoStarts==endUndo+1&&![[plugin toolCanvasMaskAtTime:last][@"drawing"]boolValue]);
|
||||
[osc release];[plugin release];
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户