未验证 提交 ee274fc6 编写于 作者: M mikejurka 提交者: GitHub

[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.
上级 8600d999
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册