Merge pull request #1046 from RytoEX/fix-do-not-duplicate-copy-paste
UI: Disallow pasting duplicates of sources with DO_NOT_DUPLICATE
This commit is contained in:
commit
2d8925e1d8
@ -5757,7 +5757,12 @@ void OBSBasic::on_actionCopySource_triggered()
|
||||
copyVisible = obs_sceneitem_visible(item);
|
||||
|
||||
ui->actionPasteRef->setEnabled(true);
|
||||
ui->actionPasteDup->setEnabled(true);
|
||||
|
||||
uint32_t output_flags = obs_source_get_output_flags(source);
|
||||
if ((output_flags & OBS_SOURCE_DO_NOT_DUPLICATE) == 0)
|
||||
ui->actionPasteDup->setEnabled(true);
|
||||
else
|
||||
ui->actionPasteDup->setEnabled(false);
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionPasteRef_triggered()
|
||||
|
Loading…
x
Reference in New Issue
Block a user