From 799ac3f6a000fed25f368114a30c8b828dfe6918 Mon Sep 17 00:00:00 2001 From: gxalpha Date: Mon, 24 Jan 2022 20:44:08 +0100 Subject: [PATCH] UI: Fix transform options being wrongly enabled/disabled They detection for this was not checking the n selected items but the first n items in the list, which would lead to the options being enabled or disabled based on the whether other items were locked. --- UI/window-basic-main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 7670af985..ae32db5bc 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -7803,7 +7803,7 @@ void OBSBasic::UpdateEditMenu() bool canTransform = false; for (int i = 0; i < count; i++) { - OBSSceneItem item = ui->sources->Get(i); + OBSSceneItem item = ui->sources->Get(items.value(i).row()); if (!obs_sceneitem_locked(item)) canTransform = true; }