From ee274fc61cf46f0b5ea8feff37cf1163244894ad Mon Sep 17 00:00:00 2001 From: mikejurka Date: Tue, 31 Mar 2020 21:49:44 -0700 Subject: [PATCH] [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. --- flow/scene_update_context.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/scene_update_context.cc b/flow/scene_update_context.cc index 407751406bf..1dadfd7327f 100644 --- a/flow/scene_update_context.cc +++ b/flow/scene_update_context.cc @@ -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();