mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Use _camera_3d_set
instead of change camera_3d directly
This commit is contained in:
parent
b75f0485ba
commit
915e39b3c9
@ -4251,8 +4251,7 @@ bool Viewport::_camera_3d_add(Camera3D *p_camera) {
|
||||
void Viewport::_camera_3d_remove(Camera3D *p_camera) {
|
||||
camera_3d_set.erase(p_camera);
|
||||
if (camera_3d == p_camera) {
|
||||
camera_3d->notification(Camera3D::NOTIFICATION_LOST_CURRENT);
|
||||
camera_3d = nullptr;
|
||||
_camera_3d_set(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user