Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.2] Update Camera 2D to fix and remove some notifications #43996

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions scene/2d/camera_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,8 @@ Transform2D Camera2D::get_camera_transform() {
void Camera2D::_notification(int p_what) {

switch (p_what) {

case NOTIFICATION_INTERNAL_PROCESS:
case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: {

_update_scroll();

} break;
case NOTIFICATION_TRANSFORM_CHANGED: {

if (!is_processing_internal() && !is_physics_processing_internal())
_update_scroll();

_update_scroll();
} break;
case NOTIFICATION_ENTER_TREE: {

Expand Down