mirror of
https://github.com/godotengine/godot
synced 2024-09-05 12:08:28 +00:00
Merge pull request #93377 from EAinsley/fix#92869
Fix Subviewport keeps using removed Camera3D child.
This commit is contained in:
commit
f7d1e39825
|
@ -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 a new issue