UI: Fix wrong behavior with undo/redo and groups

This commit is contained in:
Ford Smith 2021-04-03 16:20:00 -04:00 • committed by Jim
commit 2932cd0fd3
2 changed files with 78 additions and 12 deletions

View file

@ -73,7 +73,8 @@ OBSBasicTransform::OBSBasicTransform(OBSBasic *parent)
SetScene(scene);
SetItem(item);
obs_data_t *wrapper = obs_scene_save_transform_states(scene, false);
obs_data_t *wrapper =
obs_scene_save_transform_states(main->GetCurrentScene(), false);
undo_data = std::string(obs_data_get_json(wrapper));
obs_data_release(wrapper);