mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-13 22:40:04 -04: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:
1 parent
2edb9f3151
commit
c8d95005c1
1 file changed
+1
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user