mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-23 07:54:17 +01:00
When Camera2D enters tree, ensure first update is not lost
This commit is contained in:
parent
641c15f906
commit
0d55a30eb1
@ -255,9 +255,8 @@ void Camera2D::_notification(int p_what) {
|
|||||||
// if a camera enters the tree that is set to current,
|
// if a camera enters the tree that is set to current,
|
||||||
// it should take over as the current camera, and mark
|
// it should take over as the current camera, and mark
|
||||||
// all other cameras as non current
|
// all other cameras as non current
|
||||||
_set_current(current);
|
|
||||||
|
|
||||||
first = true;
|
first = true;
|
||||||
|
_set_current(current);
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_EXIT_TREE: {
|
case NOTIFICATION_EXIT_TREE: {
|
||||||
|
Loading…
Reference in New Issue
Block a user