mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 00:48:12 +08:00
Fix an assortment of small bugs (#3968)
* Fix an assertion failure bug when scaling a line in the transform cage * Fix missing defaults on node gradient inputs * Fix Blend Shapes path input wire not updating to show in the UI after Layer > Blend * Fix assertion failure due to browser non-monotonic timestamp * Fix SVG renderer drawing 1px strokes as half-width when using stroke alignment * Fix incorrect appearance of the ColorInput widget when set to "none" and "disabled" * Fix lerp function in Fill enum to handle None cases correctly * Fix stroke alignment bug
This commit is contained in:
@@ -139,7 +139,8 @@ impl FrameTimeInfo {
|
||||
}
|
||||
|
||||
pub fn advance_timestamp(&mut self, next_timestamp: Duration) {
|
||||
debug_assert!(next_timestamp >= self.timestamp);
|
||||
// Guard against non-monotonic timestamps from the browser (Keavon observed this once in Chrome)
|
||||
let next_timestamp = next_timestamp.max(self.timestamp);
|
||||
|
||||
self.prev_timestamp = Some(self.timestamp);
|
||||
self.timestamp = next_timestamp;
|
||||
|
||||
Reference in New Issue
Block a user