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.
This commit is contained in:
Lain 2023-08-15 17:20:44 -07:00
parent 2edb9f3151
commit c8d95005c1

View file

@ -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;