UI: Fix undo data being saved when no changes occur
obs_scene_save_transform_states was called with all_items = true when starting a transform, but all_items = false when comparing undo data. Fixes #4510
This commit is contained in:
parent
dca1d3714b
commit
054a68b8f4
@ -723,7 +723,7 @@ void OBSBasicPreview::mouseReleaseEvent(QMouseEvent *event)
|
||||
}
|
||||
OBSBasic *main = reinterpret_cast<OBSBasic *>(App()->GetMainWindow());
|
||||
obs_data_t *rwrapper =
|
||||
obs_scene_save_transform_states(main->GetCurrentScene(), false);
|
||||
obs_scene_save_transform_states(main->GetCurrentScene(), true);
|
||||
|
||||
auto undo_redo = [](const std::string &data) {
|
||||
obs_data_t *dat = obs_data_create_from_json(data.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user