fixed camera2d's "current" property getting reset when switching scenes
This commit is contained in:
parent
5ccf797c9c
commit
78e2d35a7e
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue