aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/parallax_layer.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2018-04-07 19:42:11 -0300
committerJuan Linietsky2018-04-07 19:43:09 -0300
commit9e7cee2ceb1a963c1da2c21013adf7d616412d3c (patch)
tree435be344798e92761c97da8295f1a97bcec051e0 /scene/2d/parallax_layer.cpp
parentcd7e9d964281d700de691eb48eb4b597c8fd947a (diff)
downloadgodot-9e7cee2ceb1a963c1da2c21013adf7d616412d3c.tar.gz
godot-9e7cee2ceb1a963c1da2c21013adf7d616412d3c.tar.zst
godot-9e7cee2ceb1a963c1da2c21013adf7d616412d3c.zip
Diffstat (limited to 'scene/2d/parallax_layer.cpp')
-rw-r--r--scene/2d/parallax_layer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/parallax_layer.cpp b/scene/2d/parallax_layer.cpp
index 050f98b02..584c2f2c8 100644
--- a/scene/2d/parallax_layer.cpp
+++ b/scene/2d/parallax_layer.cpp
@@ -72,7 +72,7 @@ void ParallaxLayer::_update_mirroring() {
ParallaxBackground *pb = Object::cast_to<ParallaxBackground>(get_parent());
if (pb) {
- RID c = pb->get_world_2d()->get_canvas();
+ RID c = pb->get_canvas();
RID ci = get_canvas_item();
Point2 mirrorScale = mirroring * get_scale();
VisualServer::get_singleton()->canvas_set_item_mirroring(c, ci, mirrorScale);