Skip to content

Commit

Permalink
avm2: Reset matrix when .matrix3D = null is set
Browse files Browse the repository at this point in the history
.matrix = A, .matrix = null, then .matrix3D has the info of the matrix A.
.matrix3D = A, .matrix3D = null, then .matrix is reset to the identity.
  • Loading branch information
cookie-s committed Dec 28, 2024
1 parent 1b6802d commit f17cb03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/avm2/globals/flash/geom/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ pub fn set_matrix_3d<'gc>(
display_object
.base_mut(activation.gc())
.set_has_matrix3d_stub(false);
display_object.set_matrix(activation.gc(), Matrix::IDENTITY);
return Ok(Value::Undefined);
};

Expand Down

0 comments on commit f17cb03

Please sign in to comment.