diff options
author | RaphaelHunter <Raphael10241024@gmail.com> | 2019-10-29 14:51:58 +0800 |
---|---|---|
committer | RaphaelHunter <Raphael10241024@gmail.com> | 2019-10-29 14:51:58 +0800 |
commit | c4cea10402f16745d97dbae5d88169dd0c7d9513 (patch) | |
tree | 972382bd47f897af0efdcf6447f281a7cf514c84 | |
parent | 7d710a745e3eecbde482349fff78f0a4e14f6371 (diff) |
fix occluders positions error under canvas_layer, close #32880
-rw-r--r-- | servers/visual/visual_server_viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/visual_server_viewport.cpp b/servers/visual/visual_server_viewport.cpp index f515af4d91..ae1f3712b0 100644 --- a/servers/visual/visual_server_viewport.cpp +++ b/servers/visual/visual_server_viewport.cpp @@ -184,7 +184,7 @@ void VisualServerViewport::_draw_viewport(Viewport *p_viewport, ARVRInterface::E for (Map<RID, Viewport::CanvasData>::Element *E = p_viewport->canvas_map.front(); E; E = E->next()) { VisualServerCanvas::Canvas *canvas = static_cast<VisualServerCanvas::Canvas *>(E->get().canvas); - Transform2D xf = p_viewport->global_transform * E->get().transform; + Transform2D xf = _canvas_get_transform(p_viewport, canvas, &E->get(), clip_rect.size); for (Set<RasterizerCanvas::LightOccluderInstance *>::Element *F = canvas->occluders.front(); F; F = F->next()) { |