You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user