UI: Don't execute or track empty SceneItem move actions
This would appear as "Undo Move '' in 'Scene Name'"
This commit is contained in:
parent
2b69adf3bc
commit
94404a4d28
1 changed files with 6 additions and 2 deletions
|
|
@ -5626,13 +5626,17 @@ void OBSBasic::on_actionSourceProperties_triggered()
|
|||
void OBSBasic::MoveSceneItem(enum obs_order_movement movement,
|
||||
const QString &action_name)
|
||||
{
|
||||
OBSSceneItem item = GetCurrentSceneItem();
|
||||
obs_source_t *source = obs_sceneitem_get_source(item);
|
||||
|
||||
if (!source)
|
||||
return;
|
||||
|
||||
OBSSource scene_source = GetCurrentSceneSource();
|
||||
OBSData undo_data = BackupScene(scene_source);
|
||||
|
||||
OBSSceneItem item = GetCurrentSceneItem();
|
||||
obs_sceneitem_set_order(item, movement);
|
||||
|
||||
obs_source_t *source = obs_sceneitem_get_source(item);
|
||||
const char *source_name = obs_source_get_name(source);
|
||||
const char *scene_name = obs_source_get_name(scene_source);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue