From 679a731964cecf214d404d5d8b6189ada0f0e677 Mon Sep 17 00:00:00 2001 From: Shaolin Date: Thu, 18 Jan 2018 02:25:57 -0200 Subject: [PATCH] UI: Don't draw bounding boxes for sources without video flag Audio Input or Output, for instance, don't have the OBS_SOURCE_VIDEO output flag so there is no need to draw the compositing helper bounding boxes. --- UI/window-basic-preview.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/window-basic-preview.cpp b/UI/window-basic-preview.cpp index d3930d594..8483060c1 100644 --- a/UI/window-basic-preview.cpp +++ b/UI/window-basic-preview.cpp @@ -1105,6 +1105,9 @@ bool OBSBasicPreview::DrawSelectedItem(obs_scene_t *scene, if (obs_sceneitem_locked(item)) return true; + if (!SceneItemHasVideo(item)) + return true; + if (!obs_sceneitem_selected(item)) return true;