Просмотр исходного кода

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.
gxalpha 4 лет назад
Родитель
Сommit
799ac3f6a0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      UI/window-basic-main.cpp

+ 1 - 1
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;
 	}