core: Mark scale/rotation as dirty when matrix changes

This commit is contained in:
Mike Welsh 2019-12-17 22:06:34 -08:00
parent 74aa127b74
commit 2af76e10f8
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ impl<'gc> DisplayObjectBase<'gc> {
}
fn set_matrix(&mut self, _context: MutationContext<'gc, '_>, matrix: &Matrix) {
self.transform.matrix = *matrix;
self.flags.remove(DisplayObjectFlags::ScaleRotationCached);
}
fn color_transform(&self) -> &ColorTransform {
&self.transform.color_transform