fix: 修复 changeFigure -next 后 setTransform 继承 transform 错误#994
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces the settleFastPreviewPendingStateBeforeNext function to settle pending non-hold performance states during fast preview. The reviewer identified a potential state inconsistency issue where the backlog is saved before these states are settled, and suggested moving the settlement function call before saveBacklogIfNeeded.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
前两行造成了一个矛盾,对于演算状态,在 commit 到视图的时候,应该 x 已经是 1000 了 我认为这个问题目前是一个 UB,并且在 |
背景
changeFigure -transform -next后紧接setTransform时,fast preview 会把changeFigure的 pending enter 终态延后到下一轮forward()才结算,导致它覆盖后续setTransform已写入的 transform。#992
改动
-next递归执行下一句前,结算当前句 pending non-hold perform 的演算终态。