[fuchsia] Fix bug when applying scale. (#17436)

We were always scaling z by 0, instead of 1. This
caused the z elevation of some layers to be 0,
which was incorrect.
This commit is contained in:
mikejurka 2020-03-31 21:49:44 -07:00 committed by GitHub
parent 8600d99939
commit ee274fc61c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,7 @@ SceneUpdateContext::Transform::Transform(SceneUpdateContext& context,
entity_node().SetScale(decomposition.scale().x(), //
decomposition.scale().y(), //
0.f //
1.f //
);
context.top_scale_x_ *= decomposition.scale().x();
context.top_scale_y_ *= decomposition.scale().y();