1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

fixed camera2d's "current" property getting reset when switching scenes

This commit is contained in:
ThreeRhinosInAnElephantCostume
2021-08-19 15:19:19 +02:00
parent 5ccf797c9c
commit 78e2d35a7e

View File

@@ -261,6 +261,7 @@ void Camera2D::_notification(int p_what) {
if (viewport && !(custom_viewport && !ObjectDB::get_instance(custom_viewport_id))) {
viewport->set_canvas_transform(Transform2D());
clear_current();
current = true;
}
}
remove_from_group(group_name);