mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-29 02:03:03 +08: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:
@@ -2476,9 +2476,7 @@ void OBSBasicPreview::DrawSpacingHelpers()
|
|||||||
if (itemSize.x == 0.0f || itemSize.y == 0.0f)
|
if (itemSize.x == 0.0f || itemSize.y == 0.0f)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
obs_sceneitem_t *parentGroup =
|
obs_sceneitem_t *parentGroup = obs_sceneitem_get_group(scene, item);
|
||||||
obs_sceneitem_get_group(main->GetCurrentScene(), item);
|
|
||||||
|
|
||||||
if (parentGroup && obs_sceneitem_locked(parentGroup))
|
if (parentGroup && obs_sceneitem_locked(parentGroup))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user