Fix main camera by proper active cameras list ordering

This commit is contained in:
2026-07-30 12:51:51 +02:00
parent 50ee3fd073
commit 4b65323133
+1 -1
View File
@@ -493,7 +493,7 @@ void Camera::OnDisable()
#if USE_EDITOR
GetSceneRendering()->RemoveActor(this, _sceneRenderingKey);
#endif
Cameras.Remove(this);
Cameras.RemoveKeepOrder(this);
if (CutSceneCamera == this)
CutSceneCamera = nullptr;