1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Removed strange custom world2d in CanvasLayer, been there since always and not sure why.

Fixes #17524, fixes #17523.
This commit is contained in:
Juan Linietsky
2018-04-07 19:42:11 -03:00
parent cd7e9d9642
commit 9e7cee2ceb
4 changed files with 30 additions and 27 deletions

View File

@@ -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);