When Camera2D enters tree, ensure first update is not lost
This commit is contained in:
parent
516d6b6bad
commit
a124d89f01
1 changed files with 1 additions and 2 deletions
|
@ -254,9 +254,8 @@ void Camera2D::_notification(int p_what) {
|
|||
// if a camera enters the tree that is set to current,
|
||||
// it should take over as the current camera, and mark
|
||||
// all other cameras as non current
|
||||
_set_current(current);
|
||||
|
||||
first = true;
|
||||
_set_current(current);
|
||||
|
||||
} break;
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
|
|
Loading…
Reference in a new issue