-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bounds calculation ahead of time
this PR handles marking a shape bounds as dirty after it has updated. This is needed because pointer events can trigger before a new draw update, which would consume the change flag before the shape has properly updated. Diffs= 085f5bd2d fix bounds calculation ahead of time (#7380) Co-authored-by: hernan <hernan@rive.app>
- Loading branch information
Showing
4 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
dde676085908d492af545660cbbb19ee0d10d91d | ||
085f5bd2dce2d25561b00eebc5f7118a2c8769eb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,7 @@ void PathComposer::update(ComponentDirt value) | |
} | ||
} | ||
} | ||
m_Shape->markBoundsDirty(); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters