summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaelHunter <Raphael10241024@gmail.com>2019-10-29 14:51:58 +0800
committerRaphaelHunter <Raphael10241024@gmail.com>2019-10-29 14:51:58 +0800
commitc4cea10402f16745d97dbae5d88169dd0c7d9513 (patch)
tree972382bd47f897af0efdcf6447f281a7cf514c84
parent7d710a745e3eecbde482349fff78f0a4e14f6371 (diff)
fix occluders positions error under canvas_layer, close #32880
-rw-r--r--servers/visual/visual_server_viewport.cpp2
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()) {