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