From c8d95005c15723ee891b6f6f41ea798bb1680517 Mon Sep 17 00:00:00 2001 From: Lain Date: Tue, 15 Aug 2023 17:20:44 -0700 Subject: [PATCH] UI: Fix unnecessary GetCurrentScene() call Missed this with the parent commit; the scene variable is now already available, thus there is no need to call GetCurrentScene() twice. --- UI/window-basic-preview.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/UI/window-basic-preview.cpp b/UI/window-basic-preview.cpp index b1f31f127..c179815d0 100644 --- a/UI/window-basic-preview.cpp +++ b/UI/window-basic-preview.cpp @@ -2476,9 +2476,7 @@ void OBSBasicPreview::DrawSpacingHelpers() if (itemSize.x == 0.0f || itemSize.y == 0.0f) return; - obs_sceneitem_t *parentGroup = - obs_sceneitem_get_group(main->GetCurrentScene(), item); - + obs_sceneitem_t *parentGroup = obs_sceneitem_get_group(scene, item); if (parentGroup && obs_sceneitem_locked(parentGroup)) return;