mirror of
https://github.com/godotengine/godot.git
synced 2025-01-06 17:37:18 +08:00
Merge pull request #28684 from credman0/master
Fix ParallaxBackground breaking when moving it out the scene tree
This commit is contained in:
commit
5128430700
@ -105,6 +105,11 @@ void ParallaxLayer::_notification(int p_what) {
|
||||
orig_scale = get_scale();
|
||||
_update_mirroring();
|
||||
} break;
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
|
||||
set_position(orig_offset);
|
||||
set_scale(orig_scale);
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user