diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-05 14:41:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-05 14:41:28 +0100 |
commit | 341f37aaeda971ad33df15293d36d393ed34d2af (patch) | |
tree | 3ff677926278637f7ef5158aceb21c590adbd825 | |
parent | 077b5f6c2c06bb2c0af525ee25f87e0db719f9d2 (diff) | |
parent | c4cea10402f16745d97dbae5d88169dd0c7d9513 (diff) |
Merge pull request #33153 from raphael10241024/fix_occluder
fix occluders positions error under canvas_layer
-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()) { |