mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 15:24:07 +00:00
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:
parent
2edb9f3151
commit
c8d95005c1
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue